Know When a Function Is Supported for Instrumentation and Acceleration
There are several steps you can take to identify the features which could result in errors during conversion.
%#codegen
andcoder.screener
(MATLAB Coder)Add the
%#codegen
pragma to the top of the MATLAB® file that is being converted to fixed point. Adding this directive instructs the MATLAB Code Analyzer to help you diagnose and fix violations that would result in errors during when you try to accelerate or instrument your code.The
coder.screener
(MATLAB Coder) function takes your function as its input argument and warns you of anything in your code that is not supported for code generation. Code generation support is essential for minimum and maximum logging and data type proposals.Consult the table of supported functions
See Language Support for a table of features supported for code generation and fixed-point conversion.