MATLAB: Failure in initial objective function evaluation. FSOLVE cannot continue.

hello

Hello, i'm trying to solve a nonlinear system of equations and I saw on the web that the function I should be looking for was "fsolve" (I am a beginner MATLAB user). I created my personal function as the following:

Best Answer

  • You never initialize omega or omega_NIR2 or Eg or Up, so your calculations will come out as empty vectors because the default value for global variables is []