Is there a way to exclude a segment of the code from the coder?

조회 수: 4 (최근 30일)
yonathan nativ
yonathan nativ 2017년 1월 9일
답변: Adam 2017년 1월 9일
Hi Everyone,
Is there a way to exclude a block of code from the coder? For example: I want to put in my Matlab code warnings & errors (to catch some unexpected cases). These functions are not supported by coder, is there a way to 'tell' the coder to skip these lines?
Thanks,
Yonathan

채택된 답변

Adam
Adam 2017년 1월 9일
e.g.
if coder.target('MATLAB')
error( 'SomeError:Id', 'This is an error not supported by Coder' );
end

추가 답변 (0개)

카테고리

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

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by