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

5 vues (au cours des 30 derniers jours)
yonathan nativ
yonathan nativ le 9 Jan 2017
Réponse apportée : Adam le 9 Jan 2017
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

Réponse acceptée

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

Plus de réponses (0)

Catégories

En savoir plus sur MATLAB Coder dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by