matlab语句找错a=0.1;b=0.5;t=-10:0.01:10;y=sin(t)^2*exp(-a*t)-b*a
来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/11/07 14:37:53
matlab语句找错
a=0.1;b=0.5;t=-10:0.01:10;
y=sin(t)^2*exp(-a*t)-b*abs(t);
这个语句运行为什么有错误呢?
Error using ==> mpower
Matrix must be square.
a=0.1;b=0.5;t=-10:0.01:10;
y=sin(t)^2*exp(-a*t)-b*abs(t);
这个语句运行为什么有错误呢?
Error using ==> mpower
Matrix must be square.
语句没有错,
>> a=0.1; b=0.5; t=-10:0.01:10;
y = sin(t).^2.*exp(-a*t)-b*abs(t);
>> y
y =
Columns 1 through 7
-4.1955 -4.2160 -4.2362 -4.2561 -4.2757 -4.2950 -4.3140
Columns 8 through 14
-4.3327 -4.3510 -4.3690 -4.3866 -4.4039 -4.4208 -4.4374
Columns 15 through 21
-4.4535 -4.4693 -4.4847 -4.4997 -4.5142 -4.5284 -4.5421
Columns 22 through 28
-4.5555 -4.5683 -4.5808 -4.5928 -4.6043 -4.6154 -4.6261
.
>> a=0.1; b=0.5; t=-10:0.01:10;
y = sin(t).^2.*exp(-a*t)-b*abs(t);
>> y
y =
Columns 1 through 7
-4.1955 -4.2160 -4.2362 -4.2561 -4.2757 -4.2950 -4.3140
Columns 8 through 14
-4.3327 -4.3510 -4.3690 -4.3866 -4.4039 -4.4208 -4.4374
Columns 15 through 21
-4.4535 -4.4693 -4.4847 -4.4997 -4.5142 -4.5284 -4.5421
Columns 22 through 28
-4.5555 -4.5683 -4.5808 -4.5928 -4.6043 -4.6154 -4.6261
.
matlab语句找错a=0.1;b=0.5;t=-10:0.01:10;y=sin(t)^2*exp(-a*t)-b*a
各位大神,matlab能拟合形如y=A*exp(-a1*t)*sin(w1*t+b1)+B*exp(-a2*t)*sin
matlab 指数曲线拟合:y=a*exp((t-b)^2/c)
急用啊!怎么用Matlab画出这个函数的图像x=10^(A-B*t)/exp(10^(A-B*t)/(B*log(10)
matlab 指数曲线拟合:y=112*[m*exp(b*t)+n*exp(c*t)
简单的matlab基础题,帮忙解释下列MATLAB语句的含义:F(t)=exp(-a*t).
用matlab解:y=dsolve('D2y+exp(-t)*Dy-sin(sqrt(t))*y=exp(-t)*sin
matlab求积分:y=sin(x),t=y^2/(a+b*y),积分范围(0,pi),
以下是matlab中的语句,syms t y=sin(pi*t)*exp(-s.*t) z=int(y,t,0,1) 求
y=(t+a)/(t-b) t=?
matlab 画图for t=0:0.5:5x=4*cos(3*t);y=4*sin(3*t);z=2*t;a=240*
跟他的问题一样,y=a/(1 (a/566-1)*exp(-r*t))用matlab作图