Add Compilation Directive to MATLAB Function
Add the %#codegen
directive (or pragma) after the function signature to
indicate that you intend to deploy the MATLAB® function on the hardware. Adding this directive instructs the MATLAB Code Analyzer to help you diagnose and fix violations that would result in
errors during deployment.
function blinkLED() %#codegen