add_param(sys,param1=val1,...,paramN=valN)
adds the specified parameters to the specified model and initializes the parameters
to the specified values. The parameters are saved in the corresponding SLX or MDL
file. You can use the set_param and
get_param functions on the parameters.
Model to which you want to add parameters, specified as a handle or name.
Format the handle as a numeric scalar, and the name as a string or character
vector. The model must be an SLX or MDL file.
Name of new parameter, specified as a string or character vector. The name
cannot be the same as the name of an existing parameter of the model.
Parameter names are case insensitive.
Dependencies
To use this parameter, specify a corresponding
val1 argument.
Data Types: string | character vector
Initial value of parameter, specified as a string or character vector.
Values are case sensitive.
Dependencies
To use this parameter, specify a corresponding
param1 argument.
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Seleziona un sito web
Seleziona un sito web per visualizzare contenuto tradotto dove disponibile e vedere eventi e offerte locali. In base alla tua area geografica, ti consigliamo di selezionare: .
Puoi anche selezionare un sito web dal seguente elenco:
Come ottenere le migliori prestazioni del sito
Per ottenere le migliori prestazioni del sito, seleziona il sito cinese (in cinese o in inglese). I siti MathWorks per gli altri paesi non sono ottimizzati per essere visitati dalla tua area geografica.