matlabFunctionBlock
Convert symbolic expression to MATLAB function block
Syntax
Description
matlabFunctionBlock(___,
converts a symbolic expression, function, or a vector of symbolic expressions or
functions to a MATLAB function block using additional options specified by one or more
name-value arguments with any of the input argument combinations in the previous
syntaxes.Name,Value
)
Examples
Input Arguments
Name-Value Arguments
Limitations
Some symbolic functions that have no corresponding MATLAB functions operating on the
double
data type, such assimplify
andsolve
, are kept as symbolic functions in the generated MATLAB function block. The converted function block that consists of these functions cannot be used in Simulink models. You need to create your own functions with thedouble
data type to replace these symbolic functions. If you are interested in a symbolic function that cannot be used in Simulink models, contact MathWorks Technical Support.
Version History
Introduced in R2009a