用matlab求解常微分方程

2025-01-04 07:54:41
推荐回答(1个)
回答1:

>> y=dsolve('D2y+Dy=cos(x)','y(0)=2','Dy(0)=1','x')

y =

sin(x)/2 - cos(x)/2 - exp(-x)/2 + 3