For optimization functions in the Optimization Toolbox (e.g. FMINUNC, FMINCON, etc.), there is a "TypicalX" parameter that can be set using the OPTIMSET function. For example,
options = optimset('TypicalX', 1);[x,fval] = fmincon(@myfun,x0,A,b, [], [], [], [], [], options)
Best Answer