List modified files in project
Open the Times Table App project. Use
to create a project object from the currently loaded project.
matlab.project.example.timesTable proj = currentProject;
Modify the project name.
proj.Name = "Better Times Table App";
Get all the modified files in the project.
modifiedfiles = listModifiedFiles(proj)
modifiedfiles = 1x2 ProjectFile array with properties: Path Labels Revision SourceControlStatus
Observe that two files are modified. Compare this with the Modified Files
view in the project, where you can see two modified project metadata files
modifiedfiles— Modified files
Modified files, returned as an array of