How to Convert Simulink Models to Single Precision Floating Point

Andy Bartlet, MathWorks

You can model your algorithm in Simulink® and use the default double data types for signals and the computations to simulate the ideal numerical behavior. When targeting an embedded target, you either need to convert your design to single precision or fixed point depending on your hardware and performance constraints. See how simple it is to convert your model to single precision and verify the numerical behavior of the converted model.