I found an example of an unconstrained optimization where fminsearch converges better and in less iterations than fmincon with manually calculated derivatives. Since fminsearch