MATLAB第三幅图总是出现? Error using ==> stem The length of X must ma
来源:学生作业帮 编辑:灵鹊做题网作业帮 分类:综合作业 时间:2024/04/29 19:03:08
MATLAB第三幅图总是出现? Error using ==> stem The length of X must match the number of rows of Y
求解答!
n=0:31;
f=1/16;
xn=2*sin(2*pi*0.125*n)+3*cos(2*pi*(0.125+f)*n);
xn_1=[xn,zeros(1,96)];
XN=fft(xn);
XN_1=fft(xn_1);
w=n*2*pi/length(n);
figure;
subplot(1,3,1);
stem(xn,'.');
subplot(1,3,2);
stem(w,abs(XN),'.');
subplot(1,3,3);
stem(w_1,abs(XN_1),'.');
求解答!
n=0:31;
f=1/16;
xn=2*sin(2*pi*0.125*n)+3*cos(2*pi*(0.125+f)*n);
xn_1=[xn,zeros(1,96)];
XN=fft(xn);
XN_1=fft(xn_1);
w=n*2*pi/length(n);
figure;
subplot(1,3,1);
stem(xn,'.');
subplot(1,3,2);
stem(w,abs(XN),'.');
subplot(1,3,3);
stem(w_1,abs(XN_1),'.');
这个意思是X长度跟Y的行数不统一
再问: 我知道 可是我不知道怎么改 我知道怎么改了额
再问: 我知道 可是我不知道怎么改 我知道怎么改了额
MATLAB第三幅图总是出现? Error using ==> stem The length of X must ma
Error using ==> stem The length of X must match the number o
MATLAB程序总是出现?Error using ==> stem at 44 X must be same lengt
matlab程序运行总是出现? Error using ==> sym.mpower Matrix must be sq
新手使用matlab出现Error using ==> plot Vectors must be the same le
关于出现 MATLAB Error using ==> plot Vectors must be the same le
matlab图画不出来,Error using plot Vectors must be the same length
Matlab中出现Error using ==> .*
请问下面的程序有错吗?matlab老是提示Error using stem (line 44) X must be sa
Matlab中,运行程序出现The length of X must match the number of rows
Matlab中出现Error using ==> *Inner matrix dimensions must agree
MATLAB程序,这个程序不知道为什么出现?Error using ==> mpower Matrix must be