Hi Johan,
I have been having the following error without exactly knowing why it occurs:
Undefined function 'is' for input arguments of type 'double'.
Error in optimizer (line 118)
if is(u{i},'complex')
Error in F_RUN_2 (line 149)
OPT = optimizer(Cons,obj,options,delta,{Zcut,Df,Dr,t,Nu,phi_xi});
When I tried solving the code by using "optimize" function, it solves fine, but when I'm converting it into an optimizer object, it gives me that error.
What is the problem? How do it rectify it?
Cheers
Knight