ps1_soln

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

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

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

View Full Document

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

View Full Document

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

View Full Document

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

View Full Document

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

View Full Document
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,
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
Ask a homework question - tutors are online