matlab中dsolve求微分方程的问题 30
y’’(t)+4y’(t)+4y(t)=f’(t)+3f(t)f(t)=exp(-t)u(t);起始条件都为零symstyf=exp(-t).*heaviside(t);...
y’’(t)+ 4y’(t)+4y(t)=f’(t)+3f(t) f(t)= exp(-t)u(t) ;起始条件都为零
syms t y
f=exp(-t).*heaviside(t);
dsolve(['D2y+4*Dy+4*y=','Df+3*f'],'y(0)=3','Dy(0)=0')
plot(t,y)
警告: Unable to display result due to a previously interrupted computation or out of memory. Execute
'reset(symengine)' and repeat the commands to regenerate the result.
> In sym/disp (line 44)
In sym/display>displayVariable (line 85)
In sym/display (line 47)
In savintest (line 3)
错误使用 plot
数据必须为可转换为双精度值的数值、日期时间、持续时间或数组。
出错 savintest (line 4)
plot(t,y) 展开
syms t y
f=exp(-t).*heaviside(t);
dsolve(['D2y+4*Dy+4*y=','Df+3*f'],'y(0)=3','Dy(0)=0')
plot(t,y)
警告: Unable to display result due to a previously interrupted computation or out of memory. Execute
'reset(symengine)' and repeat the commands to regenerate the result.
> In sym/disp (line 44)
In sym/display>displayVariable (line 85)
In sym/display (line 47)
In savintest (line 3)
错误使用 plot
数据必须为可转换为双精度值的数值、日期时间、持续时间或数组。
出错 savintest (line 4)
plot(t,y) 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询