Matlab求常微分方程为什么错误 dsolve('Dy=-2x*y/(x^2+2*a)')这个matlab提示:Error using ==> dsolve at 126Can not use D as a variable in DSOLVE.

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/25 23:33:12
Matlab求常微分方程为什么错误dsolve(''Dy=-2x*y/(x^2+2*a)'')这个matlab提示:Errorusing==>dsolveat126CannotuseDasavariabl

Matlab求常微分方程为什么错误 dsolve('Dy=-2x*y/(x^2+2*a)')这个matlab提示:Error using ==> dsolve at 126Can not use D as a variable in DSOLVE.
Matlab求常微分方程为什么错误 dsolve('Dy=-2x*y/(x^2+2*a)')
这个matlab提示:Error using ==> dsolve at 126
Can not use D as a variable in DSOLVE.

Matlab求常微分方程为什么错误 dsolve('Dy=-2x*y/(x^2+2*a)')这个matlab提示:Error using ==> dsolve at 126Can not use D as a variable in DSOLVE.
>> syms x y a;
>> dsolve('Dy=-2*x*y/(x^2+2*a)','x')
ans =
C1/(x^2+2*a)
我这里运行没错,你检查一下你的命令中括号等符号是否有问题,是否有输成全角的情况.
另外注意:语句中要加上‘x',因为matlab默认自变量是t,你这样的式子算出来了也不对.