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

6 visualizaciones (últimos 30 días)
titowe
titowe el 17 de Nov. de 2022
Respondida: tatok el 17 de Nov. de 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{:});
请问这是什么原因导致的?如能得到帮助,感激不尽!!!

Respuesta aceptada

tatok
tatok el 17 de Nov. de 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')

Más respuestas (0)

Categorías

Más información sobre MATLAB 快速入门 en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!