MOON
MOON

Reputation: 2801

Disabling optimize option in matlab Function

This is an example of Matlab itself:

syms x
r = x^2*(x^2 + 1);
f =  matlabFunction(r,'File','myfile','Optimize',false);

I wanted to disable the optimize option here.

I get this error:

Error using sym/matlabFunction>getOptions (line 491)
'Optimize' is not a recognized parameter. For a list of valid name-value pair arguments, see the documentation for this function.

Error in sym/matlabFunction (line 100)
opts = getOptions(args);

Error in Untitled (line 3)
f =  matlabFunction(r,'File','myfile','Optimize',false);

Upvotes: 0

Views: 100

Answers (1)

Daniel
Daniel

Reputation: 36710

The parameter is only available in recent versions of matlab. I recommend to use the local documentation accessible via doc to avoid such problems.

Upvotes: 2

Related Questions