How Can i solve this problem
显示 更早的评论
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
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Applications 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

