Specify Global Cell Arrays at the Command Line - MATLAB & Simulink (original) (raw)

To specify global cell array inputs, use the -globals option of the codegen command with this syntax:

codegen myfunction -globals {global_var, {type_object, initial_value}}

For example:

Global variables that are cell arrays cannot have variable size.

See Also

codegen | coder.typeof

Topics