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 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 DocumentThis preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
Unformatted text preview: num_H = [1/(L*Cp), 0]; den_H = [1, (1/Ro/Cp + R/L), (1/L/Cp)*(1+R/Ro) + 1/L/Cs, 1/(L*Cs*Ro*Cp)]; % Find the magnitude and phase [mag_H, phase_H] = bode(num_H, den_H, w); % Find the Qfactor max_H = max(mag_H); index_fo = find( mag_H == max_H ); calc_fo = f(index_fo) index_3dB_BW = find( mag_H >= max_H/sqrt(2) ); calc_3dB_BW = f(max(index_3dB_BW))  f(min(index_3dB_BW)) Q = calc_fo/calc_3dB_BW % plot the Bode plot figure(2) subplot(211) plot(f/1e6, 20*log10(mag_H), ... f(index_3dB_BW)/1e6, 20*log10(max_H/sqrt(2))*ones(size(index_fo)), 'r' ) title( 'Bode Plot of Vi/Vnr' ) legend( 'magnitude response' , ... [ '3 dB Bw is ' , num2str(calc_3dB_BW/1e3, '%0.5g' ), 'kHz' ]) ylabel( 'Mag [dB]' ) subplot(212) plot(f/1e6, phase_H) ylabel( 'Phase [deg]' ) xlabel( 'Freq [MHz]' )...
View
Full Document
 Spring '08
 UNKNOWN
 Frequency, Hertz, Zin figure

Click to edit the document details