ps8_soln - EE 428 Problem Set 8 Solutions -3- Problem 34: %...

Info iconThis preview shows pages 1–8. 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
EE 428 Problem Set 8 Solutions -3- Problem 34: % EE 428 Fall 2007 % Problem Set 8, Problem 34 % plant transfer function num_Gp = 100; den_Gp = conv([1,1], [1, 10, 100]); % generate Bode plot figure(1) bode(num_Gp, den_Gp) title( 'Probelm 31: Bode Plot of Plant Transfer Function' ) % determine the phase crossover frequency and gain margin [mag, phase, omega] = bode(num_Gp, den_Gp); wpc = interp1(phase, omega, -180); gain_wpc = interp1(omega, mag, wpc); GM = 1 / gain_wpc; [wpc, gain_wpc, GM, 20*log10(GM)] % use the MATLAB command margin [Gm,Pm,Wcg,Wcp] = margin(num_Gp, den_Gp)
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
EE 428 Problem Set 8 Solutions -6- Problem 35: 10 -1 10 0 10 1 -20 -10 0 mag [dB] Problem 32: Bode Plot of Plant with Time-Delay GM = 4.3dB 10 -1 10 0 10 1 -200 -100 0 phase [deg] freq [rad/sec] G p = -180 ω pc =1.3 rad/sec
Background image of page 6
EE 428 Problem Set 8 Solutions -7- Problem 32: % EE 428 Fall 2007 % Problem Set 8, Problem 35 % plant transfer function with out delay num_Gp = 100; den_Gp = conv([1,1], [1, 10, 100]); % determine the gain and phase for no time delay omega = logspace(-2, 3, 10000); [mag, phase, omega] = bode(num_Gp, den_Gp, omega); % modify the phase to include the delay phase_with_delay = phase - (pi/2)*omega*(180/pi); % determine the gain margin wpc = interp1(phase_wd, omega, -180); gain_wpc = interp1(omega, mag, wpc); GM = 1 / gain_wpc; GM_dB = 20*log10(GM);
Background image of page 7

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

View Full DocumentRight Arrow Icon
Image of page 8
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 24

ps8_soln - EE 428 Problem Set 8 Solutions -3- Problem 34: %...

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

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