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

6 次查看(过去 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!