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.
Website auswählen
Wählen Sie eine Website aus, um übersetzte Inhalte (sofern verfügbar) sowie lokale Veranstaltungen und Angebote anzuzeigen. Auf der Grundlage Ihres Standorts empfehlen wir Ihnen die folgende Auswahl: .
Sie können auch eine Website aus der folgenden Liste auswählen:
So erhalten Sie die bestmögliche Leistung auf der Website
Wählen Sie für die bestmögliche Website-Leistung die Website für China (auf Chinesisch oder Englisch). Andere landesspezifische Websites von MathWorks sind für Besuche von Ihrem Standort aus nicht optimiert.