필터 지우기
필터 지우기

Does "fsolve" still avaliable for sloving the nonlinear equation?

조회 수: 2 (최근 30일)
Mark
Mark 2021년 5월 25일
댓글: Sulaymon Eshkabilov 2021년 5월 26일
I would like to slove the nonlinear equation above and I use matlab to code below but the command window showed: Undefined function 'fsolve' for input arguments of type 'function_handle'.
How should I use the fsolve function or is there any other way to solve these nonlinear equation?
Thank you very much!
clc; clear;
f=@(x) [2.*x(1)-x(2)-exp(-x(1));-x(1)+2.*x(2)-exp(-x(2))];
fsolve(f,[-5,-5])

채택된 답변

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2021년 5월 25일
Hi,
In order to employ fsolve() function, you should have optimization toolbox installed in your computer.
fsolve is part of optimization toolbox and thus, you have gotten such an error message.
  댓글 수: 2
Mark
Mark 2021년 5월 25일
After I install the optimization toolbox, it works! Thanks a lot!!
Sulaymon Eshkabilov
Sulaymon Eshkabilov 2021년 5월 26일
Most welcome! It is a pleasure to help.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Solver Outputs and Iterative Display에 대해 자세히 알아보기

태그

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by