how solve 1 unknown varible function?
显示 更早的评论
hi, i am new at matlab and i am having troubles with fsolve.
>> fsolve('(2x+4)/(x+2)=5','x') ??? Error using ==> fsolve at 148 FSOLVE only accepts inputs of data type double.
采纳的回答
更多回答(1 个)
Walter Roberson
2012-1-6
If you have the symbolic toolbox, use solve() instead of fsolve()
solve('(2x+4)/(x+2)=5','x')
类别
在 帮助中心 和 File Exchange 中查找有关 Symbolic Math Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!