# fig4_13 - The plot in the text was generated using...

This preview shows page 1. Sign up to view the full content.

% Produces Figure 4.13 % % demonstrates the relationship between the % Fourier Series and the Fourier Transform % T = input('Input T ') w0 = 2*pi/T; % plot for frequencies -30 to 30 N = 30/w0; c0 = 1/T; k=1:N; ck = [sin(k*pi/T)/pi./k]; w = [w0*k 0 -w0*k]; Tck = T*abs([ck c0 ck]); clf subplot(211),stem(w,Tck)
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: % The plot in the text was generated using stem(w/pi,Tcn) % and the pi's along the x axis were added by hand. % The x label was also added by hand. axis([-30 30 0 1.25]) title(['Figure 4.13, T = ',num2str(T)]) ylabel('T|ck|') xlabel('Frequency (rad/sec)') subplot(111)...
View Full Document

## This note was uploaded on 03/24/2010 for the course CENG 4331 taught by Professor Maryrandolph-gips during the Fall '09 term at UH Clear Lake.

Ask a homework question - tutors are online