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.
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.