Filter Signals with Different Data Types
This example shows how to use Simulink® blocks to filter signals that have different data types. Initially, the model generates a double-precision data type signal with noise and converts the data type to single precision. The model then uses two subsystems to filter the based on the signal precision:
Reduced Precision Filter processes the single-precision data type
Full Precision Filter processes the double-precision data type
Simulation
During simulation, the scope block displays the Reduced Precision
and Full Precision
signals, along with the error. The error is the difference between the signal values.
The results indicate that the model filters both the double- and single- precision data type signals to remove the noise. The error is 0.