matlab 为什么会出现这个错误?using ==> stem The length of X must match the number of rows of Y.clf;N=8;n1=-N:-1;c1=-4*j*sin(n1*pi/2)/pi.^2/n1.^2;c0=0;n2=1:N;c1=-4*j*sin(n1*pi/2)/pi.^2/n1.^2;c0=0;n2=1:N;c2=-4*j*sin(n2*pi/2)/pi.^2/n2.^2;cn=[c1

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/19 22:13:18
matlab为什么会出现这个错误?using==>stemThelengthofXmustmatchthenumberofrowsofY.clf;N=8;n1=-N:-1;c1=-4*j*sin(n1

matlab 为什么会出现这个错误?using ==> stem The length of X must match the number of rows of Y.clf;N=8;n1=-N:-1;c1=-4*j*sin(n1*pi/2)/pi.^2/n1.^2;c0=0;n2=1:N;c1=-4*j*sin(n1*pi/2)/pi.^2/n1.^2;c0=0;n2=1:N;c2=-4*j*sin(n2*pi/2)/pi.^2/n2.^2;cn=[c1
matlab 为什么会出现这个错误?using ==> stem The length of X must match the number of rows of Y.
clf;
N=8;n1=-N:-1;
c1=-4*j*sin(n1*pi/2)/pi.^2/n1.^2;
c0=0;
n2=1:N;
c1=-4*j*sin(n1*pi/2)/pi.^2/n1.^2;
c0=0;
n2=1:N;
c2=-4*j*sin(n2*pi/2)/pi.^2/n2.^2;cn=[c1 c0 c2];n=-N:N;
subplot(2,1,1);Stem(n,abs(cn));ylabel('Am of CN');subplot(2,1,2);
stem(n,angle(cn));ylabel('phase of CN');xlabel('\omega/\omega0/');

matlab 为什么会出现这个错误?using ==> stem The length of X must match the number of rows of Y.clf;N=8;n1=-N:-1;c1=-4*j*sin(n1*pi/2)/pi.^2/n1.^2;c0=0;n2=1:N;c1=-4*j*sin(n1*pi/2)/pi.^2/n1.^2;c0=0;n2=1:N;c2=-4*j*sin(n2*pi/2)/pi.^2/n2.^2;cn=[c1
clf;
N=8;
n1=-N:N;
c1=sinc(n1*pi/2)./(pi.*n1/2);
stem(n1,c1)
ylabel('phase of CN');
xlabel('\omega/\omega0/');
按上面语句改