ex7_10 - title(['Example 7.10, N = ',num2str(N),', q =...

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

View Full Document Right Arrow Icon
% Example 7.10 % q = input('Input q: '); N = input('Input N: '); x = [ones(1,2*q+1) zeros(1,N-2*q-1)]; Xk = dft(x); k = 0:N-1; clf subplot(211) stem(k,abs(Xk))
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: title(['Example 7.10, N = ',num2str(N),', q = ',num2str(q)]) xlabel('k') ylabel('|Xk|') axis([0 N-1 0 15]) subplot(111)...
View Full Document

Ask a homework question - tutors are online