# ps5_soln - ylabel( 'output, y(t)' , 'FontSize' , 14,...

This preview shows pages 1–22. 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
EE 428 Problem Set 5 Solutions -9- Problem 21:

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

View Full Document
EE 428 Problem Set 4 Solutions -10- Problem 21: % EE 428 Fall 2007 % Problem 21 % run simulation sim( 'ps5_p20' ) % extract variables from output structure t = output.time; e = output.signals.values(:,1); y = output.signals.values(:,2); % determine the steady-state error ess = e(end); % find time response characteristics [tr, ts, Mp, tp, yss] = find_resp_char(y,t); % plot the unit step response and error signals figure(1) subplot(211) handle = plot(t,y); set(handle, 'LineWidth' , 2, 'MarkerSize' , 10); set(gca, 'FontSize' , 14, 'FontName' , 'times new roman' );

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

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.

Unformatted text preview: ylabel( 'output, y(t)' , 'FontSize' , 14, 'FontName' , 'Times New Roman' ) xlabel( 'time [sec]' , 'FontSize' , 14, 'FontName' , 'Times New Roman' ) legend([ 'tr = ' , num2str(tr, '%3.3f' ), 's;' , ... ' Mp = ' , num2str(Mp, '%3.3f' ), '%' ]); subplot(212) handle = plot(t,e); set(handle, 'LineWidth' , 2, 'MarkerSize' , 10); set(gca, 'FontSize' , 14, 'FontName' , 'times new roman' ); ylabel( 'error, e(t)' , 'FontSize' , 14, 'FontName' , 'Times New Roman' ) xlabel( 'time [sec]' , 'FontSize' , 14, 'FontName' , 'Times New Roman' ) legend([ 'e_{ss} = ' , num2str(ess, '%3.3f' )])...
View Full Document

## This note was uploaded on 07/23/2008 for the course EE 428 taught by Professor Schiano during the Fall '07 term at Pennsylvania State University, University Park.

### Page1 / 22

ps5_soln - ylabel( 'output, y(t)' , 'FontSize' , 14,...

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

View Full Document
Ask a homework question - tutors are online