coder.CodeFile - Description of file containing text that is involved in code generation - MATLAB (original) (raw)
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. Allcoder.CodeFile
properties are read-only. You can use dot notation to query these properties.
You do not directly create a coder.CodeFile
object. Acoder.ReportInfo
object contains one coder.CodeFile
object for every file involved in code generation that has text. Thesecoder.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.
Text
— Text of the file
character vector
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
Path
— Path to the file
character vector
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
Extension
— Extension of the file
'.m'
| '.mlx'
| '.c'
| '.cpp'
| '.cu'
| '.h'
| '.hpp'
| '.cuh'
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
Version History
Introduced in R2019a