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.
Seleccione un país/idioma
Seleccione un país/idioma para obtener contenido traducido, si está disponible, y ver eventos y ofertas de productos y servicios locales. Según su ubicación geográfica, recomendamos que seleccione: .
También puede seleccionar uno de estos países/idiomas:
Cómo obtener el mejor rendimiento
Seleccione China (en idioma chino o inglés) para obtener el mejor rendimiento. Los sitios web de otros países no están optimizados para ser accedidos desde su ubicación geográfica.