Main Content

coder.CodeFile Properties

Description of file containing text that is involved in code generation

coder.CodeFile properties contain the text, path, and extension of a file that is involved in code generation from MATLAB® code. All coder.CodeFile properties are read-only. You can use dot notation to query these properties.

You do not directly create a coder.CodeFile object. A coder.ReportInfo object contains one coder.CodeFile object for every file involved in code generation that has text. These coder.CodeFile 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.

Descriptions of files that do not have text are stored in coder.File objects. See coder.File Properties.

This property is read-only.

Text of a file that is involved in code generation from MATLAB code, specified as a character vector.

Data Types: char

This property is read-only.

Path to a file with text that is involved in code generation from MATLAB code, specified as a character vector.

Example: 'C:\coder\R2019a\Report Info Object\foo.m'

Data Types: char

This property is read-only.

Extension of a file with text that is involved in code generation from MATLAB code, specified as a character vector.

Data Types: char

Introduced in R2019a