用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!