{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

sim5 - -89.5 Phase vs log frequency Frequency(Hz Phase(deg...

Info icon This 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' )
Image of page 1

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

View Full Document Right 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
Image of page 2
10 2 10 3 10 4 -90
Image of page 3

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

View Full Document Right Arrow Icon
Image of page 4
Image of page 5

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

View Full Document Right Arrow Icon
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

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern