This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Add the Compilation Directive to the 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