求matlab高手~Error using plot Vectors must be the same lengths问
来源:学生作业帮 编辑:大师作文网作业帮 分类:综合作业 时间:2024/11/12 16:07:51
求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”
然后怎么改正啊?
你的w是1×401维的,而y(1,:)是1×400维,所以出错了.
建议修改w,比如w=0.05:0.05:20;或者w=0:0.05:19.95;具体需要你仔细看一下了.
你好,你的问题我已经回答,如有疑问请追问,若满意请采纳哦O(∩_∩)O~
建议修改w,比如w=0.05:0.05:20;或者w=0:0.05:19.95;具体需要你仔细看一下了.
你好,你的问题我已经回答,如有疑问请追问,若满意请采纳哦O(∩_∩)O~
求matlab高手~Error using plot Vectors must be the same lengths问
MATLAB运行错误:Error using plot Vectors must be the same lengths
Matlab Error using ==> plot Vectors must be the same lengths
求解释: MATLAB Error using ==> plot Vectors must be the same le
matlab plot 提示错误:Vectors must be the same lengths!
新手使用matlab出现Error using ==> plot Vectors must be the same le
matlab图画不出来,Error using plot Vectors must be the same length
关于出现 MATLAB Error using ==> plot Vectors must be the same le
matlab 提示错误是:Error using ==> plot Vectors must be the same l
哪位大侠知道这个MATLAB的错误啊 plot Vectors must be the same lengths.
为什么matlab程序老是报 plot Vectors must be the same lengths.的错误?..
matlab问题Vectors must be the same lengths.