coder.screener
Determine if function is suitable for code generation
Syntax
coder.screener(fcn)
coder.screener(fcn_1,...,fcn_n )
Description
coder.screener(
analyzes the entry-point MATLAB®function,fcn
)fcn
. It identifies unsupported functions and language features as code generation compliance issues. It displays the code generation compliance issues in a report. Iffcn
calls other functions directly or indirectly that are not MathWorks®functions,coder.screener
analyzes these functions. It does not analyze MathWorks functions. It is possible thatcoder.screener
does not detect all code generation issues. Under certain circumstances, it is possible thatcoder.screener
reports false errors.
coder.screener(
analyzes entry-point functions (fcn_1,...,fcn_n
)fcn_1,...,fcn_n
).
Input Arguments
|
Name of entry-point MATLAB function that you want to analyze. Specify as a character vector or a string scalar. |
|
Comma-separated list of names of entry-point MATLAB functions that you want to analyze. Specify as character vectors or string scalars. |
Examples
Tips
Before using
coder.screener
, fix issues that the Code Analyzer identifies.Before generating code, use
coder.screener
to check that a function is suitable for code generation. Fix all the issues that it detects.It is possible that
coder.screener
does not detect all issues, and can report false errors. Therefore, before generating C code, verify that your code is suitable for code generation by generating a MEX function.