EM350 midterm Problem 1

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

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

View Full Document Right Arrow Icon
EM 350 Mid-Term Ryan Finke 3-14-08
Background image of page 1

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

View Full DocumentRight Arrow Icon
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
Background image of page 2
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;
Background image of page 3

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

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

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 Right Arrow Icon
Ask a homework question - tutors are online