EM350 midterm Problem 1

EM350 midterm Problem 1 - EM 350 Mid-Term Ryan Finke...

This preview shows pages 1–4. Sign up to view the full content.

EM 350 Mid-Term Ryan Finke 3-14-08

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

View Full Document
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 Transfer function Vs. Frequency frequency ,MHz Amplitude Problem 1 This problem we are examining a RC circuit. a) Plot the magnitude of this transfer function over the frequency of 0 to 10 MHz but only plot 0 to 1 MHz MATLAB CODE clc; clear; RC=20; %micro sec f=s_space(0,10,2048); tr_RC=1./(1-(2*pi*i*f*RC)); figure(1); plot(f,tr_RC) title( 'Transfer function Vs. Frequency' ) xlabel( 'frequency ,MHz' ) ylabel( 'Amplitude' ) axis([0 1 0 1]) Since this is a plot of only the positive frequencies, I added some code to add in the negative (symmetrical) part of the transfer function before taking the inverse FFT of it. MATLAB CODE
0 5 10 15 20 25 30 35 40 45 50 0 10 20 30 40 50 60 70 80 90 100 Output voltage time,microsec Amplitude tr_RC=real(tr_RC); for k=0:length(f)/2 tr_RC(length(f)-k)=tr_RC(k+1); end df=(f(2)-f(1))*2; T=1/df; t=s_space(0, T, 2048); dt=t(2)-t(1); TR_RC= IFourierT(tr_RC,dt)*2;

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 6

EM350 midterm Problem 1 - EM 350 Mid-Term Ryan Finke...

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

View Full Document
Ask a homework question - tutors are online