From the series: Coder Summit
Andy Bartlett, MathWorks
When your model and generated code results do not match, denormal numbers may be the cause.
Flush-to-zero math, in particular, is a common cause for mismatches since gradual underflows used in simulation are not often used in embedded systems.Most embedded design uses Flush to zero for faster math.
Learn how new features in Fixed-Point Designer™ let you use gradual underflow for plant of environment models, and Flush to zero for your embedded algorithms.
This approach provides the best numerical accuracy for system simulation, while providing more optimized code that matches your embedded system.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
Select web siteYou 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.
This website uses cookies to improve your user experience, personalize content and ads, and analyze website traffic. By continuing to use this website, you consent to our use of cookies. Please see our Privacy Policy to learn more about cookies and how to change your settings.