How Can i solve this problem
Afficher commentaires plus anciens
T=2*pi;
ts=0.01;
t=0:ts:ts-T;
K=0:60;
N=60;
xt= 2.*sin(4*pi*t) + 5.*cos(8*pi*t);
TK=T'*K;
W=exp(-1i*2*pi/N).^TK;
x4=xt.*W;
magx4=abs(xt);
angx4=angle(xt);
figure,subplot(2,1,1);stem(magx4)
figure,subplot(2,1,2);stem(angx4);
Error using .*
Arrays have incompatible sizes for this operation.
Related documentation
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Applications dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

