matlab微分方程dsolve使用 - 遗忘海岸

matlab微分方程dsolve使用

y=dsolve(\'Dy=exp(-x-y-2)\',\'y(0)=-2\',\'x\')

dy/dx 写成Dy (注意大小写)

y(0)=-2 表示初始条件

\'x\'表示积分变量