coder.Function Properties

Description of MATLAB function used in code generation

coder.Function properties contain the description of a MATLAB® function that is used in code generation. All coder.Function properties are read-only. You can use dot notation to query these properties.

You do not directly create a coder.Function object. A coder.ReportInfo object contains one coder.Function object for every MATLAB function that is used in code generation. These coder.Function objects are automatically created when you export code generation report information to a coder.ReportInfo object. For more information, see coder.ReportInfo Properties and Access Code Generation Report Information Programmatically.

This property is read-only.

Name of a MATLAB function used in code generation, specified as a character vector.

Example: 'foo'

Data Types: char

This property is read-only.

The specialization identifier of a MATLAB function used in code generation. A value of zero indicates that the function is not specialized. A positive value indicates that the function is specialized.

Data Types: double

This property is read-only.

A description of the MATLAB file that contains the function used in code generation.

This property is read-only.

1-based index of the first character of the function in the text of the file. If the file does not contain text (for example, a P-coded file), this property is equal to 0.

To manually inspect the code, the line and column numbers corresponding to StartIndex are useful. Use the getLineColumn function to obtain that information.

Data Types: double

This property is read-only.

1-based index of the last character of the function in the text of the file. If the file does not contain text (for example, a P-coded file), this property is equal to 0.

To manually inspect the code, the line and column numbers corresponding to EndIndex are useful. Use the getLineColumn function to obtain that information.

Data Types: double

Introduced in R2019a