Ex7_11 - q = 10 N = 21 omo = 9.5*pi/21 n = 0:N-1 x= cos(omo*n Xk=dft(x k=n subplot(313,stem(k,abs(Xk title'Example 7.11 q = 10 N = 21 Omega =

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

View Full Document Right Arrow Icon
% Example 7.11 q=10; N = 2*q+1; omo=10*pi/21; n=0:N-1; x=cos(omo*n); Xk=dft(x); k=0:N-1; clf subplot(311),stem(k,abs(Xk)) title('Example 7.11, q = 10, N = 21, Omega = 10pi/21') ylabel('|Xk|') xlabel('k') text(6,10.5,'10.5') text(17,10.5,'10.5') % % redo with a different N and Omega
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: q = 10; N = 21; omo = 9.5*pi/21; n = 0:N-1; x= cos(omo*n); Xk=dft(x); k=n; subplot(313),stem(k,abs(Xk)); title('Example 7.11, q = 10, N = 21, Omega = 9.5pi/21') ylabel('|Xk|') xlabel('k') text(6,9.5,'9.81') text(17,9.5,'9.81') 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