ps1_soln - 'zoh[Ad Bd Cd Dd = ssdata(dt_sys Unit-step...

Info iconThis preview shows pages 1–10. Sign up to view the full content.

View Full Document Right Arrow Icon
Background image of page 1

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

View Full Document Right Arrow Icon
Background image of page 2
Background image of page 3

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

View Full Document Right Arrow Icon
Background image of page 4
Background image of page 5

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

View Full Document Right Arrow Icon
Background image of page 6
Background image of page 7

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

View Full Document Right Arrow Icon
Background image of page 8
Background image of page 9

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

View Full Document Right Arrow Icon
0 1 2 3 4 5 6 7 8 9 10 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 Zero-State Unit-Step Response Amplitude Time [s] continuous-time plant ZOH DT Equivalent Model EE 482 Problem Set 1 Solutions -10- Problem 5: % EE 482 Spring 2008 % Problem Set 1, Problem 5 % Continuous-time (CT) plant Ac = [0,1;1,0]; Bc = [0;1]; Cc = [-1, 1]; Dc = 0; ct_sys = ss(Ac, Bc, Cc, Dc); % Unit-step response of CT system t_ct = linspace(0,10,100); y_ct = step(ct_sys, t_ct); % ZOH DT Equiv Model Ts = 0.2; dt_sys = c2d(ct_sys, Ts,
Background image of page 10
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 'zoh' ); [Ad, Bd, Cd, Dd] = ssdata(dt_sys); % Unit-step response of DT system t_dt = [0 : Ts : 10]; y_dt = dstep(Ad, Bd, Cd, Dd, '' ,length(t_dt)); % Plot the unit-step repsonses figure(1) title( 'Zero-State Unit-Step Response' ) plot(t_ct, y_ct, '-b' ) hold on stairs(t_dt, y_dt, '-r' ) title( 'Zero-State Unit-Step Response' ) ylabel( 'Amplitude' ); xlabel( 'Time [s]' ) legend( 'continuous-time plant' , 'ZOH DT Equivalent Model' )...
View Full Document

{[ snackBarMessage ]}

Page1 / 10

ps1_soln - 'zoh[Ad Bd Cd Dd = ssdata(dt_sys Unit-step...

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

View Full Document Right Arrow Icon
Ask a homework question - tutors are online