realp
Real tunable parameter
Syntax
p = realp(paramname,initvalue)
Description
p = realp(
creates a tunable real-valued parameter with name specified by paramname
,initvalue
)paramname
and
initial value initvalue
. Tunable real parameters can be scalar- or matrix-
valued.
Input Arguments
|
Name of the |
|
Initial numeric value of the parameter |
Output Arguments
|
|
Properties
|
Name of the |
|
Value of the tunable parameter.
|
|
Lower bound for the parameter value. The dimension of the For matrix-valued parameters, use indexing to specify lower bounds on individual elements: p = realp('K',eye(2)); p.Minimum([1 4]) = -5; Use scalar expansion to set the same lower bound for all matrix elements: p.Minimum = -5; Default: |
|
Upper bound for the parameter value. The dimension of the For matrix-valued parameters, use indexing to specify upper bounds on individual elements: p = realp('K',eye(2)); p.Maximum([1 4]) = 5; Use scalar expansion to set the same upper bound for all matrix elements: p.Maximum = 5; Default: |
|
Boolean value specifying whether the parameter is free to be tuned. Set the
The dimension of the Default: 1 ( |
Examples
Tips
Use arithmetic operators (
+
,-
,*
,/
,\
, and^
) to combinerealp
objects into rational expressions or matrix expressions. You can use the resulting expressions in model-creation functions such astf
,zpk
, andss
to create tunable models. For more information about tunable models, see Models with Tunable Coefficients in the Control System Toolbox™ User's Guide.
Version History
Introduced in R2011a