Main Content

coder.File Properties

Description of file without text that is involved in code generation

coder.File properties contain the path and extension of a file that is involved in code generation from MATLAB® code and does not have text (for example, a P-coded file). All coder.File properties are read-only. You can use dot notation to query these properties.

You do not directly create a coder.File object. A coder.ReportInfo object contains one coder.File object for every file involved in code generation that does not have text. These coder.File 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 have text are stored in coder.CodeFile objects. See coder.CodeFile Properties.

This property is read-only.

Path to a file that does not have text (for example, a P-coded file) and is involved in code generation from MATLAB code, specified as a character vector.

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

Data Types: char

This property is read-only.

Extension of a file that does not have text (for example, a P-coded file) and is involved in code generation from MATLAB code, specified as a character vector.

Data Types: char

Version History

Introduced in R2019a