MATLAB: What is wrong with the optimoptions call

linprogoptimoptionssimplex

I am running version MATLAB 7.7.0 (R2008b) and the following call givem me an error:
EDU>> options=optimoptions(@linprog,'Algorithm','simplex'); ??? Error using ==> optimoptions Too many input arguments.
What can I do about it? this is copied from a matlab help example.
Thanks Dylan

Best Answer

Dylan, optimoptions was newly introduced in MATLAB R2013a. If you are using an older release use optimset.
options = optimset('linprog');
options.Algorithm = 'simplex';