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

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

Sign in to comment.

Answers (0)

Categories

Find more on Programming in Help Center and File Exchange

Products


Release

R2023a

Community Treasure Hunt

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

Start Hunting!