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 visualizaciones (últimos 30 días)
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 comentarios
Vidhi Agarwal
Vidhi Agarwal el 17 de Jul. de 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.
Emanuele
Emanuele el 17 de Jul. de 2025
Thank you very much, I was hoping for a different solution than replacing the generated files with a copy of those generated with Matlab 2022.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Deployment, Integration, and Supported Hardware en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2024b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by