
matlab Error using ==> mpower怎么解决呢?
t=0:0.1:15.1;y=((33.4*t-t^2).*(741.9+0.7181*t-t^2)./2100000+1)^3.5./21;plot(t,y)???Er...
t=0:0.1:15.1;y=((33.4*t-t^2).*(741.9+0.7181*t-t^2)./2100000+1)^3.5./21;plot(t,y)
??? Error using ==> mpower
Matrix must be square.
哪位高手帮忙指教一下 我该如何修改这个程序(我要做出y关于t的函数图像)
是这个 上面那个错误了
t=0:0.1:15.1;y=((33.4*t-t^2).*(741.9+0.7181*t-t^2)./2100000+1)^3.5.*21;plot(t,y)
??? Error using ==> mpower
Matrix must be square. 展开
??? Error using ==> mpower
Matrix must be square.
哪位高手帮忙指教一下 我该如何修改这个程序(我要做出y关于t的函数图像)
是这个 上面那个错误了
t=0:0.1:15.1;y=((33.4*t-t^2).*(741.9+0.7181*t-t^2)./2100000+1)^3.5.*21;plot(t,y)
??? Error using ==> mpower
Matrix must be square. 展开
展开全部
1、乘方如果是矩阵相乘,需要行数和列数相同,警告:Error using ==> mpower
Matrix must be square,说明默认为矩阵相乘,但是你的行列数不相同,所以报警
2、如果仅仅是对应元素相乘,需要在乘方前面加上点,如:.^
由于不是矩阵相乘,采用第二种方法
t=0:0.1:15.1;y=((33.4*t-t.^2).*(741.9+0.7181*t-t.^2)./2100000+1).^3.5.*21;plot(t,y)
Matrix must be square,说明默认为矩阵相乘,但是你的行列数不相同,所以报警
2、如果仅仅是对应元素相乘,需要在乘方前面加上点,如:.^
由于不是矩阵相乘,采用第二种方法
t=0:0.1:15.1;y=((33.4*t-t.^2).*(741.9+0.7181*t-t.^2)./2100000+1).^3.5.*21;plot(t,y)
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |