用Matlab2023a的fsolve函数解非线性方程组,报错“输出参数太多”
9 views (last 30 days)
Show older comments
请教大家:
用Matlab里fsolve解多元非线性方程组,报错如下图,输出参数太多。

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

2 Comments
xingxingcui
on 8 Mar 2024
Edited: xingxingcui
on 8 Mar 2024
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
on 8 Mar 2024
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
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!