用Matlab2023a的fsolve函数解非线性方程组,报错“输出参数太多”
9 ビュー (過去 30 日間)
古いコメントを表示
请教大家:
用Matlab里fsolve解多元非线性方程组,报错如下图,输出参数太多。

代码没问题,因为用别的电脑跑顺利出结果(而且别的电脑也是MacBook Matlab2023a版)。
找遍互联网似乎没答案,蹲蹲好心大佬指教!
代码附上:(Equilibrium函数定义是没问题,仅附调用fsolve求解code~)

2 件のコメント
xingxingcui
2024 年 3 月 8 日
編集済み: xingxingcui
2024 年 3 月 8 日
Hi,@Mengmeng
You should paste the code directly to make it easier for others to copy and run it directly, the font size of this image is too small to see it clearly.
There are "code blocks" inserted in the edit area, and you can also run your code in real time to quickly pinpoint your problem.
Chuguang Pan
2024 年 3 月 8 日
It could be that there is other functions named with fsolve in your MATLAB Path. Ensure that you call the correct function fsolve using the following command
which fsolve -all
回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!