Contenu principal

delete_param

R2026b

Delete model parameter added with add_param function

Description

delete_param(sys,param1,...,paramN) deletes parameters that were added to the model using the add_param function. Deleting parameters that were not added with the add_param function is not supported.

example

Examples

collapse all

Suppose you have a model named myModel. The model has two custom parameters that were added using the add_param function. The parameters are named myParam1 and myParam2.

Delete the parameters from the model.

delete_param("myModel","myParam1","myParam2");

Input Arguments

collapse all

Model from which you want to delete custom parameters, specified as a handle or name. Format the handle as a numeric scalar, and the name as a string or character vector.

For information about getting handles, see Get Handles and Paths.

Data Types: double | string | character vector

Parameters to delete from model, specified as strings or character vectors.

Data Types: string | character vector

Version History

Introduced before R2006a