Error recovery (try/catch) for Code Generation

조회 수: 14 (최근 30일)
Michael
Michael 2022년 6월 2일
댓글: jessupj 2024년 3월 28일
What is the best way to implement error handling for Matlab code that I plan to deploy to C/C++ so that my code doesn't crash if there is an error that I might be able to recover from? I can see that we can do error reporting in generated code, so at least if there is an error I'll know what happened. But if try/catch isn't complatible with code generation the function will just crash if there is an error. Is there some way to recover from errors in generated code?
  댓글 수: 5
Tilman
Tilman 2023년 5월 22일
편집: Tilman 2023년 5월 22일
@Raghu Boggavarapu thank you, this would be really helpful in order to be able to build a standalone from Matlab.
jessupj
jessupj 2024년 3월 28일
I don't see it in R2023b either. any change it will be in 24a? For applying things to real-world data that's a mess and sufficient preprocessing/data cleaning is intractible, it sure would be nice to have.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB Coder에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by