MATLAB: Am I unable to use “feature(‘​uselinesea​rchsolver’​,1)” with Simulink 6.5 (R2006b)

featuresimulinkslfeatureuselinesearchsolver

When I execute the following code:
feature('uselinesearchsolver',1)
I get the following error message:
??? Error using ==> feature
An unknown feature was specified
This command works fine in R13SP1 and R2007b.

Best Answer

The behavior observed is because Simulink was not loaded. To work around the issue, load Simulink first and then issue the command. For example, you can use the following code:
simulink
feature('UseLineSearchSolver',1);
or execute:
slfeature('UseLineSearchSolver',1);