Main Content
generateCode
Syntax
Description
generateCode(
creates a MATLAB® function that recreates modelObj
)modelObj
, a SimBiology model, and
opens an untitled MATLAB function file containing the function definition in the MATLAB editor. By
default, the generated function is called createModel
.
generateCode(___,
specifies additional options using one or more name-value arguments.Name=Value
)
returns the generated MATLAB function as a textual output. If you do not specify an output
argument, the function does not return anything at the command line, that is, no
ans variable is returned.modelCode
= generateCode(___)
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2024a