This change has been incorporated into the documentation in Release 14 Service Pack 3 (R14SP3). For previous releases, read below for any additional information:
This is an error in the documentation for MATLAB 7.0.1 (R14SP1) within the FMINSEARCH section. The documentation should read as follows:
x = fminsearch(@(x) myfun(x,a),[0 1]);
rather than:
x = fminsearch(@(x) myfun(x,a), 0, 1);
Best Answer