listImpactedFiles
Description
returns the names of the project files that require the specified
impactedfiles
= listImpactedFiles(proj
,files
)files
to run.
Examples
Get Files Impacted by Modified Files
Open the Times Table App project. Use currentProject
to create a project object.
openExample("matlab/TimesTableProjectExample")
proj = currentProject;
Make a change to timesTableGame.m
.
fid = fopen('source/timesTableGame.m','a'); fwrite(fid,'% Add simple comment'); fclose(fid)
Get the files impacted by the modified files.
modifiedfiles = listModifiedFiles(proj); impactedfiles = listImpactedFiles(proj,modifiedfiles)
impactedfiles = 6×1 string array "C:\workSpace\examples\TimesTableApp\requirements\TimesTableRequirements.mlx" "C:\workSpace\examples\TimesTableApp\source\timesTableGame.m" "C:\workSpace\examples\TimesTableApp\source\timestable.mlapp" "C:\workSpace\examples\TimesTableApp\tests\tAnswerIsCorrect.m" "C:\workSpace\examples\TimesTableApp\tests\tCurrentQuestion.m" "C:\workSpace\examples\TimesTableApp\tests\tNewTimesTable.m"
Input Arguments
proj
— Project
matlab.project.Project
object
Project, specified as a matlab.project.Project
object.
Use currentProject
to create a project object from the currently
loaded project.
files
— Path of project files
cell array of character vectors | string array | ProjectFile
object array
Path of project files including file extensions, specified as a cell array
of character vectors, a string array, or a ProjectFile
object array. Specify files
as absolute file paths or
paths relative to the project root folder. The files must be within the
project root folder.
Output Arguments
impactedfiles
— Impacted project files
string array
Impacted project files, returned as a string array.
Version History
Introduced in R2021a
Comando MATLAB
Hai fatto clic su un collegamento che corrisponde a questo comando MATLAB:
Esegui il comando inserendolo nella finestra di comando MATLAB. I browser web non supportano i comandi MATLAB.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)