This preview has intentionally blurred sections. Sign up to view the full version.
View Full DocumentThis preview has intentionally blurred sections. Sign up to view the full version.
View Full DocumentThis preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
Unformatted text preview: clear all close all % define system b = [1,8]; a = conv([1,2.4,4],[1,0.5]); h = tf(b,a); w = logspace(2,2,300); % frequency vector [mag,phs] = bode(h,w); % calculate bode plots mag = squeeze(mag); phs = squeeze(phs); magdb = 20*log10(mag); % calculate magnitude in dB subplot(2,1,1) semilogx(w,magdb,'k','linewidth',2); grid xlabel('frequency, rad/sec') ylabel('dB') title('Magnitude Plot for Problem 2') subplot(2,1,2) semilogx(w,phs,'k','linewidth',2); grid xlabel('frequency, rad/sec') ylabel('deg') title('Phase Plot for Problem 2') 20log(0.1) = − 20 dB s 10 s + 10 1 10 100 0 20 90 0 dB Deg 90 s 10 s + 1020 10 203040 0.1 1 10 10050 20log(4) = 12 0.5 s + 0.5 4 s 2 + 2( .6)(2) s + 2 2 dB ω1801359045 45 90 0.01 0.1 1 10 100 deg ω 0.5 s + 0.5 4 s 2 + 2(.6)(2) s + 2 2...
View
Full Document
 Spring '08
 ODENAAL
 Decibel, Nyquist plot, Bode Plots

Click to edit the document details