102project

102project - 1 Compute and plot the amplitude and phase...

This preview shows pages 1–4. Sign up to view the full content.

1. Compute and plot the amplitude and phase spectrum of H 1 ( iw ), impulse response h 1 (t) and step response g 1 (t): Ts=.01; t=[0.0:Ts:50]; num1=[1000]; den1=[1 1 1000]; sys1=tf(num1,den1); %Compute impulse response using matlab h1=impulse(sys1,t); plot(t,h1); %Input my calculated impulse response h1Calc = 31.6267 * exp(-1/2*t).*sin(31.6188*t); plot(t, h1Calc, t, h1); %Compute unit step response using matlab g1= step(sys1,t); %Input my calculated unit step response g1Calc = 1-exp(-1/2*t) .* ( 1/63.2376 * sin(31.6188*t) + cos(31.6188*t) ) plot(t,g1, t, g1Calc); %Plot amplitude and phase spectra bode(num1,den1);

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Figure 1: Shows the amplitude and phase spectra of H 1 . The top plot is the amplitude (magnitude vs angular frequency) and the bottom plot is the phase (phase vs angular frequency). Figure 2: Shows the impulse response and plots h 1 (t) vs t (sec). Figure 3: Shows the unit step response and plots g 1 vs t (sec).
2. Compute and plot y 1 (t): %Compute y1 x1=ones(1000,1); y1=conv(x1,h1)*Ts; plot(y1); %Input my calculated y1 y1Calc = ( 1-exp(-1/2*t) .* (1/63.2376 * sin(31.6188*t) + cos(31.6188*t) ) ) .* heaviside(t) - (1-exp(-1/2*(t-10)) .* ( 1/63.2376 * sin(31.6188*(t-10)) + cos(31.6188 *(t-

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 10/07/2011 for the course EE 102 taught by Professor Levan during the Spring '08 term at UCLA.

Page1 / 13

102project - 1 Compute and plot the amplitude and phase...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online