Hello,
If I have a function called Myfunc, and I want to minimize it.
I am trying: [X fval] = fminsearch(@Myfunc, X0)
It minimizes the result, but everytime I run it again it gives me a lower value. So im not reaching the local minimum.
I tried [X fval] = fminunc(@Myfunc, X0), but the...