用Matlab202​3a的fsolve函​数解非线性方程组,报​错“输出参数太多”

조회 수: 9 (최근 30일)
Mengmeng
Mengmeng 2024년 3월 8일
댓글: Chuguang Pan 2024년 3월 8일
请教大家:
用Matlab里fsolve解多元非线性方程组,报错如下图,输出参数太多。
代码没问题,因为用别的电脑跑顺利出结果(而且别的电脑也是MacBook Matlab2023a版)。
找遍互联网似乎没答案,蹲蹲好心大佬指教!
代码附上:(Equilibrium函数定义是没问题,仅附调用fsolve求解code~)
  댓글 수: 2
xingxingcui
xingxingcui 2024년 3월 8일
편집: xingxingcui 2024년 3월 8일
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
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개)

카테고리

Help CenterFile Exchange에서 Programming에 대해 자세히 알아보기

제품


릴리스

R2023a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by