问题描述:
求matlab高手~Error using plot Vectors must be the same lengths问题
代码如下:
w=0:0.05:20;f0=[500 1000 2000 4000 8000];for m=1:5;for n=1:400;y(m,n)=pinx(f0(m),w(n));endendsubplot(2,3,1),plot(w,20*log10(abs(y(1,:)))),xlabel('f0=0.5kHz');
为啥说“Error using plotVectors must be the same lengths”
然后怎么改正啊?
代码如下:
w=0:0.05:20;f0=[500 1000 2000 4000 8000];for m=1:5;for n=1:400;y(m,n)=pinx(f0(m),w(n));endendsubplot(2,3,1),plot(w,20*log10(abs(y(1,:)))),xlabel('f0=0.5kHz');
为啥说“Error using plotVectors must be the same lengths”
然后怎么改正啊?
问题解答:
我来补答展开全文阅读