Matlab内部矩阵维度问题?clear allt=455:1:475;y=1.4*sech(0.7*t-352.8)*(cos(1.5*t-455.4)-0.61*sin(1.15*t-455.4)*tanh(0.7*t-352.8))./(1+0.371*sin(1.15*t-455.4)^2*sech(0.7*t-352.8)^2);polt(t,y);在matlab中怎么算不出来,说是内部矩阵维
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/05 02:04:03
Matlab内部矩阵维度问题?clear allt=455:1:475;y=1.4*sech(0.7*t-352.8)*(cos(1.5*t-455.4)-0.61*sin(1.15*t-455.4)*tanh(0.7*t-352.8))./(1+0.371*sin(1.15*t-455.4)^2*sech(0.7*t-352.8)^2);polt(t,y);在matlab中怎么算不出来,说是内部矩阵维
Matlab内部矩阵维度问题?
clear all
t=455:1:475;
y=1.4*sech(0.7*t-352.8)*(cos(1.5*t-455.4)-0.61*sin(1.15*t-455.4)*tanh(0.7*t-352.8))./(1+0.371*sin(1.15*t-455.4)^2*sech(0.7*t-352.8)^2);
polt(t,y);
在matlab中怎么算不出来,说是内部矩阵维度不一样?
这是为什么,
Matlab内部矩阵维度问题?clear allt=455:1:475;y=1.4*sech(0.7*t-352.8)*(cos(1.5*t-455.4)-0.61*sin(1.15*t-455.4)*tanh(0.7*t-352.8))./(1+0.371*sin(1.15*t-455.4)^2*sech(0.7*t-352.8)^2);polt(t,y);在matlab中怎么算不出来,说是内部矩阵维
t=455:1:475;
%y=1.4*sech(0.7*t-352.8)*(cos(1.5*t-455.4)-0.61*sin(1.15*t-455.4)*tanh(0.7*t-352.8))./(1+0.371*sin(1.15*t-455.4)^2*sech(0.7*t-352.8)^2);
a=1.4*sech(0.7*t-352.8);
b=cos(1.5.*t-455.4)-0.61.*sin(1.15.*t-455.4).*tanh(0.7.*t-352.8);
c=(1+0.371.*sin(1.15.*t-455.4).^2.*sech(0.7.*t-352.8).^2);
y=a.*b./c;
plot(t,y);