Does "fsolve" still avaliable for sloving the nonlinear equation?
    4 visualizzazioni (ultimi 30 giorni)
  
       Mostra commenti meno recenti
    
    Mark
 il 25 Mag 2021
  
    
    
    
    
    Commentato: Sulaymon Eshkabilov
      
 il 26 Mag 2021
            
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])
0 Commenti
Risposta accettata
  Sulaymon Eshkabilov
      
 il 25 Mag 2021
        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 Commenti
Più risposte (0)
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!