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

5 ビュー (過去 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 Center および File ExchangeMATLAB 快速入门 についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!