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

5 views (last 30 days)
titowe
titowe on 17 Nov 2022
Answered: tatok on 17 Nov 2022
函数求解程序如下如下:
[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{:});
请问这是什么原因导致的?如能得到帮助,感激不尽!!!

Accepted Answer

tatok
tatok on 17 Nov 2022
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')

More Answers (0)

Categories

Find more on MATLAB 快速入门 in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!