How to return error code from compiled exe, without throwing up dialogue box?

Hi, Matlab community
I need to receive an error code from a Matlab compiled exe. I read that the way to do this is just by throwing an error. However, this also throws up a dialogue box which I do not want to happen:
function error_code = my_function()
class % This results in error
On the other hand, just returning a value is not interpreted as an error code by the system:
function error_code = my_function()
try
class
error_code = 0;
catch
error_code = 1;
end

 채택된 답변

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 MATLAB Compiler에 대해 자세히 알아보기

제품

릴리스

R2014b

질문:

2021년 8월 5일

댓글:

2021년 8월 6일

Community Treasure Hunt

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

Start Hunting!

Translated by