rt_nonfinite.h and rt_nonfinite.c are generated in different ways between matlab 2024 and matlab 2022 if I use the same configuration
8 views (last 30 days)
Show older comments
Until now I have worked with Matlab 2022 for code generation with Embedded Coder, with this version the autogenerated file rt_nonfinite.c did not make use of the functions ‘isinf’ and ‘isnan’.
Using the Matlab 2024 version instead, the rt_nonfinite.c file makes use of these functions.
I cannot use a standard other than C99 so as not to have other problems with standard functions, such as fabs which assume the use of doubles, I would like to ask you if there is a setting to make the rt_nonfinite.c file be generated as it was with the 2022 version.
Translated with DeepL.com (free version)
2 Comments
Vidhi Agarwal
on 17 Jul 2025
I went through the documentation but I couldn't find anything mentioning to force the code generator to produce the old style of rt_nonfinite.c (i.e., without using isinf and isnan), as was done in MATLAB 2022. The code generation templates and support files are updated in newer releases, and MathWorks does not provide a built-in option to revert to legacy code patterns for this specific file.
Answers (0)
See Also
Categories
Find more on Deployment, Integration, and Supported Hardware in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!