求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');为啥

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/09 04:33:01
求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');为啥

求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');为啥
求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”
然后怎么改正啊?

求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');为啥

你的w是1×401维的,而y(1,:)是1×400维,所以出错了.

建议修改w,比如w=0.05:0.05:20;或者w=0:0.05:19.95;

具体需要你仔细看一下了.


你好,你的问题我已经回答,如有疑问请追问,若满意请采纳哦O(∩_∩)O~

Error! Only let me pain是什么意思? 求高手帮助. 用matlab画有边界的voronoi图,怎么画?已经加载了MPT3工具箱A=rand(3,10);pbound=polytope([0 0 0;150 0 0;150 150 0;0 150 0; 0 0 1;150 0 1;150 150 1;0 150 1]);Options.pbound=pbound;V=mpt_voronoi(A,Options);plot(V);提示出错:Error usin 求高手解决下面有关matlab问题 求matlab数字图象处理方面的高手! matlab出错 Error using ==> mrdivideepsr=1.0;sig=0.0;cc=2.99792458e8; muz=4.0*pi*1.0e-7; epsz=1.0/(cc*cc*muz);ca=[0.0 0.0];cb=[0.0 0.0];eaf=dt*sig/(2.0*epsz*epsr);ca(1)=(1.0-eaf)/(1.0+eaf);cb(1)=dt/epsz/epsr/dx/(1.0+eaf);运行老是显示Error usin matlab小白贵跪求高手 ,求高手用matlab计算如下函数值 感激不尽 求MATLAB高手帮助----fzero函数的问题用fzero函数是,总是出现Error using ==> fzeroFunction value at starting guess must be finite and real.这是什么原因?怎么才能弄好啊····谢谢······matlab符号运算中,怎么把 Matlab解方程组时 提示错误' is not a valid expression or equation.下面的程序哪错了>> eq1='x*k+b=y';>> eq2='300*k+b=300';>> eq3='(x-80)^2+(y-210)^2=100';>> eq4='(80k+b-210)/sqrt(k^2+1)=10';>> solve (eq1,eq2,eq3,eq4,'k,b,x,y')Error usin 求matlab高手,求用矩阵接方程 求高手用matlab求矩阵的最大特征根. 求matlab高手,这个公式用simulink怎么表示 求MATLAB高手帮忙解决设计矩阵运算 求常微分和matlab高手求解这个问题 求高手帮做个 量子BP神经网络 MATLAB实验程序的 matlab程序出现Error in ==> fesin at 错误,求高手指导.在使用quad函数求积分时[s,n]=quad('fesin',-100000000000,10000000000)出现一下错误,(我的fesin是这样定义的.function funz=fesin(x)funz=691200.*x./((1+9./0.7.*x^2)^4./3 matlab程序出现Error in ==> fesin at 错误,求高手指导.在使用quad函数求积分时[s,n]=quad('fesin',-100000000000,10000000000)出现一下错误,(我的fesin是这样定义的.function funz=fesin(x)funz=691200.*x./((1+9./0.7.*x^2)^4./3 matlab!急!分分钟就交了!求高手做下这matlab题! 初学matlab,不知道下面的错误在哪儿,求高手解决.谢了!x=-1:0.01:1; y=((x*x)^(1/3))*((x*x)^(1/3))+sqrt(1-x*x); plot(y,x); ? Error using ==> mtimes Inner