How to use fsolve
信息
此问题已关闭。 请重新打开它进行编辑或回答。
显示 更早的评论
After that I get my target equation which has only 1 Unknown. So something like:
eqn=[x^2];
solution=fsolve(@(x) eqn, startx);
Unfortunatlly that does not work. Thank You very much!
1 个评论
The fsolve help states that the first input must be "specified as a function handle or function name", and all of the examples show fsolve being used with function handles. You should learn about function handles:
Also note that the square brackets are totally superfluous:
回答(1 个)
此问题已关闭。
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!