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 (최근 30일)
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
Vidhi Agarwal
Vidhi Agarwal 2025년 7월 17일
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 2025년 7월 17일
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.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Deployment, Integration, and Supported Hardware에 대해 자세히 알아보기

태그

제품


릴리스

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by