sim5 - -89.5-89-88.5 Phase vs log frequency Frequency (Hz)...

Info iconThis preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon
clear format short g ein = 1; f=(100:100:10e3); r1=1500; c1=100e-9; r=r1; xc=(1./(2*pi*f*c1)); mag=xc./(sqrt(r.^2+xc.^2)); phase=-90-atan(-xc./r); semilogx(f,abs(mag)) %graph part title( 'Output Voltage vs log frequency' ) xlabel( 'Frequency (Hz)' ) ylabel( 'Amplitude (db)' ) grid semilogx(f,phase) %graph part title( 'Output Voltage Phase vs log Frequency' )
Background image of page 1

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

View Full DocumentRight Arrow Icon
10 2 10 3 10 4 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 Output Voltage vs log frequency Frequency (Hz) Amplitude (Vrms) xlabel( 'Frequency (Hz)' ) ylabel( 'Output Voltage' ) grid Figure 1: m-file Output Mag & Phase
Background image of page 2
10 2 10 3 10 4 -90
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
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: -89.5-89-88.5 Phase vs log frequency Frequency (Hz) Phase (deg) clear format short g ein = 1; f=(100:100:10e3); r1=1500; c1=100e-9; r=r1; xc=(1./(2*pi*f*c1)); mag=xc./(sqrt(r.^2+xc.^2)); phase=-90-atan(-xc./r); db=20*log(mag) semilogx(f,db) %graph part title( 'dB Gain vs log frequency' ) xlabel( 'Frequency (Hz)' ) ylabel( 'Gain (dB)' ) grid Figure 2: m-file Output Gain 10 2 10 3 10 4-45-40-35-30-25-20-15-10-5 dB Gain vs log frequency Frequency (Hz) Gain (dB)...
View Full Document

This note was uploaded on 10/14/2009 for the course ECET 207 taught by Professor Honchell during the Spring '08 term at Purdue University-West Lafayette.

Page1 / 6

sim5 - -89.5-89-88.5 Phase vs log frequency Frequency (Hz)...

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

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