Saturday, March 21, 2009

Discrete Magnitude and Phase Spectra



echo on
fnct='lambda';
a=-4;
b=4;
n=24;
tol=0.1;
xx=fseries(fnct,a,b,n,tol);
xx1=xx(n+1:-1:2);
xx1=[conj(xx1),xx];
absxx1=abs(xx1);
pause
n1=[-n:n];
stem(n1,absxx1);
title('The Discrete Magnitude Spectrum')
phasexx1=angle(xx1);
pause


stem(n1,phasexx1)
title('The Discrete Phase Spectrum')



******************************************************************************************************************************************************

echo on fnct='lambda'; a=-4; b=4; n=24; tol=0.1; xx=fseries(fnct,a,b,n,tol); xx1=xx(n+1:-1:2); xx1=[conj(xx1),xx]; absxx1=abs(xx1); pause n1=[-n:n]; stem(n1,absxx1); title('The Discrete Magnitude Spectrum') phasexx1=angle(xx1); pause



stem(n1,phasexx1) title('The Discrete Phase Spectrum')



******************************************************************************************************************************************************

Comments:

Post a Comment

Subscribe to Post Comments [Atom]





<< Home

This page is powered by Blogger. Isn't yours?

Subscribe to Posts [Atom]