Main Content

jc_0643: Fixed-point setting

Since R2020a

Guideline Publication

Control Algorithm Modeling Guidelines - Using MATLAB®, Simulink®, and Stateflow®

Sub ID Recommendations

  • NA-MAAB — No recommendations

  • JMAAB — a

MATLAB Versions

All

Rule

Sub ID a

When block parameter Data type is a set to fixdt (fixed-point) and Scaling is set to Slope and bias, parameter Bias shall be set to 0.

Custom Parameter

Not Applicable

Rationale

Sub ID a:

  • When the bias in a model is not uniform:

    • Behavior of the model is impossible to determine by its appearance.

    • Unintended overflows and underflows occur.

    • Results in wasteful operation and deterioration of code efficiency/computing load.

Verification

Model Advisor check: Check usage of fixed-point data type with non-zero bias (Simulink Check)

Last Changed

R2020a

Version History

Introduced in R2020a