如何用matlab画出y=exp(-5/2*t)*(cosh(3/2*t)-1/3*sinh(3/2*t))的图形?用程序 t=0:1:10;>> y=exp(-5/2*t)*(cosh(3/2*t)-1/3*sinh(3/2*t));Error using ==> mtimesInner matrix dimensions must agree.这该怎么解决?

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/10 07:04:28
如何用matlab画出y=exp(-5/2*t)*(cosh(3/2*t)-1/3*sinh(3/2*t))的图形?用程序 t=0:1:10;>> y=exp(-5/2*t)*(cosh(3/2*t)-1/3*sinh(3/2*t));Error using ==> mtimesInner matrix dimensions must agree.这该怎么解决?

如何用matlab画出y=exp(-5/2*t)*(cosh(3/2*t)-1/3*sinh(3/2*t))的图形?用程序 t=0:1:10;>> y=exp(-5/2*t)*(cosh(3/2*t)-1/3*sinh(3/2*t));Error using ==> mtimesInner matrix dimensions must agree.这该怎么解决?
如何用matlab画出y=exp(-5/2*t)*(cosh(3/2*t)-1/3*sinh(3/2*t))的图形?
用程序 t=0:1:10;
>> y=exp(-5/2*t)*(cosh(3/2*t)-1/3*sinh(3/2*t));
Error using ==> mtimes
Inner matrix dimensions must agree.
这该怎么解决?

如何用matlab画出y=exp(-5/2*t)*(cosh(3/2*t)-1/3*sinh(3/2*t))的图形?用程序 t=0:1:10;>> y=exp(-5/2*t)*(cosh(3/2*t)-1/3*sinh(3/2*t));Error using ==> mtimesInner matrix dimensions must agree.这该怎么解决?
因为t是向量,所以在做乘除运算是要对单独元素进行,应该在乘除号前面加点, 即 ./ .*
y=exp(-5/2.*t).*(cosh(3/2.*t)-1/3*sinh(3/2.*t));