ps2_soln - % find tr; limit search to 0 < t < tp to...

Info iconThis preview shows pages 1–11. 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 DocumentRight 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 DocumentRight 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 DocumentRight 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 DocumentRight 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 DocumentRight Arrow Icon
Background image of page 10
EE 428 Problem Set 2 Solutions -11- Problem 9: (part 1) function [tr, ts, Mp, tp, yss] = find_resp_char(y,t); % FIND_REP_CHAR time response characteristics of dynamic responses % EE 428 % Fall 2007 % Problem 9 Part 1 % assumes last point of y vector represents steady-state value yss = y(end); % find Mp (percent) and tp [Mp, tp_index] = max(y); Mp = 100*(Mp - yss)/yss; tp = t(tp_index);
Background image of page 11
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: % find tr; limit search to 0 < t < tp to find initial 10% to 90% rise in response tr_range_indices = find( (y >= 0.1*yss) & (y <= 0.9*yss) & ( t <= tp)); tr = max( t(tr_range_indices) ) - min( t(tr_range_indices) ); % find ts by flipping t and y yf = flipud(y); tf = flipud(t); ts_indices = find( (yf >= 1.01*yss) | (yf <= 0.99*yss) ); ts = tf ( min(ts_indices) );...
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 Penn State.

Page1 / 11

ps2_soln - % find tr; limit search to 0 < t < tp to...

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

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