The opts arguments are optional arguments of the form option = value, where option is one of the names listed below. These arguments correspond to keyword parameters; the left side of an equation is the keyword, the right side is the value. Each keyword parameter has a default value that is assigned if the parameter is not passed.
The following paragraphs describe each of the keyword parameters. The first line of each paragraph specifies the format of the argument: the left side is the keyword and the right side specifies the type of the value. If the type is truefalse, then passing just the keyword is equivalent to passing keyword = .
List of prompt labels for the generated mask of the Simulink® block. The labels list must have the same number of elements as the parameters list. The default is the names of the variables (left-hand side of the equations) of the parameters option.
|
Specifies the type of the generated Simulink® diagram. There are two types of Simulink® diagram files: Model or Library. If model is set to true, a Model type Simulink® diagram is generated; otherwise, a Library type Simulink® diagram is created. The default is false.
|
|
List of parameter equations for the system. If the parameters list is specified, then a mask is created for the main subblock such that the individual parameter variables are listed and made available for editing in the mask dialog box of the generated Simulink® diagram. If parameters is omitted the settings from SystemOptions(parameters) are used. The parameters option is required when the given system contains symbolic parameters; otherwise, an error is raised when the generated code is executed within MATLAB®. The default is an empty list.
|
Specifies the type of the main subblock. C indicates the main subblock is generated for a Level-2 C S-Function block. Matlab indicates the main subblock is generated for a Level-1 M-file S-Function block. The default is C.