%#codegen directive (or pragma) to
your function after the function signature to indicate that you intend
to generate code for the MATLAB® algorithm. Adding this directive
instructs the MATLAB code analyzer to help you diagnose and fix
violations that would result in errors during code generation.
function y = my_fcn(x) %#codegen ....