Is there a way to exclude a segment of the code from the coder?
3 ビュー (過去 30 日間)
古いコメントを表示
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
2017 年 1 月 9 日
e.g.
if coder.target('MATLAB')
error( 'SomeError:Id', 'This is an error not supported by Coder' );
end
0 件のコメント
その他の回答 (0 件)
参考
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!