solve函数求解时出现错误,找不到原因。

조회 수: 4 (최근 30일)
titowe
titowe 2022년 11월 17일
답변: tatok 2022년 11월 17일
函数求解程序如下如下:
[y]=solve('y-153*(-0.005222*(sqrt(21*exp(0.0053*21))*exp(0.0038*y))^2+0.07735*(sqrt(21*exp(0.0053*21))*exp(0.0038*y))+0.1852)','y')
但是在运行时提示出错,错误内容如下:
错误使用 solve>processString (line 365)
' y-153*(-0.005222*(sqrt(21*exp(0.0053*21))*exp(0.0038*y))^2+0.07735*(sqrt(21*exp(0.0053*21))*exp(0.0038*y))+0.1852) ' is not a valid expression or equation.
出错 solve>getEqns (line 286)
eqns = processString(eqns, v, vc);
出错 solve (line 160)
[eqns,vars,options] = getEqns(varargin{:});
请问这是什么原因导致的?如能得到帮助,感激不尽!!!

채택된 답변

tatok
tatok 2022년 11월 17일
solve('y-153*(-0.005222*(sqrt(21*exp(0.0053*21))*exp(0.0038*y))^2+0.07735*(sqrt(21*exp(0.0053*21))*exp(0.0038*y))+0.1852)','y')

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB 快速入门에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!