MATLAB Examples

Fixed-Point Conversion

This example shows the use of a fixed point variable in Simulink® and Stateflow® to create an output in a specified range.

Occasionally the input signal to the Stateflow® graph is outside the range defined by the fixed point variable used in Stateflow®. The value then overflows, which is represented by the yellow signal in the Scope window.