| Simulink Reference | ![]() |
Specify the value, value range, data type, and other properties of a block parameter.
Description
This class enables you to create workspace objects that you can then use as the values of block parameters, for example, as the value of a Gain block's Gain parameter. The advantage? Parameter objects let you specify not only the value of a parameter but also other information about the parameter, such as the parameter's purpose, its dimensions, its minimum and maximum values, etc. Some Simulink products make use of this information. For example, Simulink and Real-Time Workshop use information specified by Simulink.Parameter objects to determine whether the parameter is tunable (see "Working with Tunable Parameters).
Property Dialog Box
single([2+5i -1+3.14159i]).
Properties
| Name |
Access |
Description |
Value |
RW |
Value of this parameter. (Value) |
DataType |
RO |
String specifying the name of the data type of this parameter. This field is read-only. (Data type) |
Dimensions |
RO |
Vector specifying the dimensions of this parameter. (Dimensions) |
Complexity |
RO |
String specifying the numeric type of this paramter. Valid values are 'real' or 'complex'. (Complexity) |
Min |
RW |
Minimum value that this parameter can have. Simulink ignores this property. (Minimum) |
Max |
RW |
Maximum value that this parameter can have. Simulink ignores this property. (Maximum) |
DocUnits |
RW |
Measurement units in which this parameter's value is expressed. (Units) |
RTWInfo |
RW |
Information used by Real-Time Workshop for generating code for this parameter. The value of this property is an object of Simulink.ParamRTWInfo class. |
| Simulink.NumericType | Simulink.ParamRTWInfo | ![]() |
© 1994-2005 The MathWorks, Inc.