Convert symbolic expression to function handle or file
uses additional options specified by one or more g
= matlabFunction(___,Name,Value
)Name,Value
pair arguments. You can specify Name,Value
after the input
arguments used in the previous syntaxes.
When you use the File
argument, use rehash
to make the generated
function available immediately. rehash
updates the
MATLAB list of known files for directories on the search path.
If the File
option is empty, then an anonymous function
is returned.
Use matlabFunction
to convert one or more symbolic
expressions to a MATLAB function and write the resulting function to an M-file. You can
then use the generated M-file to create standalone applications and web apps
using MATLAB
Compiler™. For example, see Deploy Generated MATLAB Functions from Symbolic Expressions with MATLAB Compiler.
Use matlabFunction
to convert one or more symbolic
expressions to a MATLAB function and write the resulting function to an M-file. You can
then use the generated M-file to create C or C++ code using MATLAB
Coder™.
ccode
| daeFunction
| fortran
| matlabFunctionBlock
| odeFunction
| rehash
| simscapeEquation
| subs
| sym2poly