y''(t)+6y'(t)-11y(t)=sin(t) 初始条件 y(0)=1 和 y'(0)=0
来源:学生作业帮 编辑:作业帮 分类:数学作业 时间:2024/05/26 01:39:10
y''(t)+6y'(t)-11y(t)=sin(t) 初始条件 y(0)=1 和 y'(0)=0
四行搞定.
y=dsolve('D2y+6*Dy-11*y=sin(t)','y(0)=1,Dy(0)=0')
t=0:0.1:1
y=subs(y)
plot(t,y)
结果:
y =
exp((-3+2*5^(1/2))*t)*(19/120*5^(1/2)+31/60)+exp(-(3+2*5^(1/2))*t)*(-19/120*5^(1/2)+31/60)-1/30*cos(t)-1/15*sin(t)
t =
0 0.1000 0.2000 0.3000 0.4000 0.5000 0.6000 0.7000 0.8000 0.9000 1.0000
y =
1.0000 1.0460 1.1594 1.3199 1.5205 1.7605 2.0428 2.3726 2.7565 3.2028 3.7210
y=dsolve('D2y+6*Dy-11*y=sin(t)','y(0)=1,Dy(0)=0')
t=0:0.1:1
y=subs(y)
plot(t,y)
结果:
y =
exp((-3+2*5^(1/2))*t)*(19/120*5^(1/2)+31/60)+exp(-(3+2*5^(1/2))*t)*(-19/120*5^(1/2)+31/60)-1/30*cos(t)-1/15*sin(t)
t =
0 0.1000 0.2000 0.3000 0.4000 0.5000 0.6000 0.7000 0.8000 0.9000 1.0000
y =
1.0000 1.0460 1.1594 1.3199 1.5205 1.7605 2.0428 2.3726 2.7565 3.2028 3.7210
matlab中假设t=0:0.1:2*pi;为什么y=t.*sin(t).*sin(t)不等于y=t.*(sin(t))
matlab中t=linspace(0,2*pi,100);x=[t;t]';y=[sin(t);cos(t)]';pl
MATLAB中,t=0:.1:2*pi; y=sint(t); plot(t,y)
t=0:pi/100:10*pi; x=2*(cos(t)+t*sin(t)); y=2*(sin(t)-t*cos(t
matlab绘图中的语法t=0:0.1:2*pi;y=sin(t);plot(t,
变量缺少clear t=0:0.1:6*pi; x=cos(t); y=sin(t); z=t; plot3(x,y,z
以下是matlab中的语句,syms t y=sin(pi*t)*exp(-s.*t) z=int(y,t,0,1) 求
y=[abs(t)
微分方程写出传递函数 y(t)''+5y(t)'+6y(t)=6 已知 y(0)=y(0)'=0
关于信号与系统的问题,已知y''(t)+5y'(t)+6y(t)=f(t),y(0-)=1,y'(0-)=1 f(t)=
1.利用plot函数在区间[0,2π]同时绘制x=sin(t)和y=cos(t),z=sin(t)+cos(t)的图形.
利用plot函数在区间[0,2π]同时绘制x=sin(t)和y=cos(t),z=sin(t)+cos(t)的图形.要求