Fixed-Point Numbers in Simulink
Simulink® data type names must be valid MATLAB® identifiers with less than 128 characters. The data type name provides information about container type, number encoding, and scaling.
You can represent a fixed-point number using the fixed-point scaling equation
where
V is the real-world value.
is the approximate real-world value.
S = F2E is the slope.
F is the slope adjustment factor, where F is a value in the range [1.0, 2.0).
E is the fixed power-of-two exponent.
Q is the stored integer.
B is the bias.
Fixed-Point Data Type and Scaling Notation
The following table provides a key for various symbols that appear in Simulink products to indicate the data type and scaling of a fixed-point value.
Symbol | Description | Example |
---|---|---|
Container Type | ||
| Unsigned fixed-point data type |
|
| Signed fixed-point data type |
|
| Scaled Doubles override
of an unsigned fixed-point data type ( |
|
| Scaled Doubles override
of a signed fixed-point data type ( |
|
Number Encoding | ||
| 10^ |
|
| Negative |
|
| Decimal point |
|
Scaling Encoding | ||
| Slope |
|
| Bias |
|
| Fixed exponent (2^) A negative fixed exponent describes the fraction length |
|
| Slope adjustment factor |
|
C, c, D, or d | Compressed encoding for Bias Note If you pass this symbol to the | No example available. For backward compatibility only. To
identify and replace calls to |
T or t | Compressed encoding for Slope Note If you pass this symbol to the | No example available. For backward compatibility only. To
identify and replace calls to |