Reputation: 5982
I have a Matlab GUI file, that uses several other .m files (all of them in the same directory as the GUI file) for working. I would like to remove any other file in the current directory that isn´t used by the GUI file. How could I do it easily and without any risk of removing any file needed?
Upvotes: 2
Views: 851
Reputation: 20915
There is an automated way - run the function depfun
, it will give you the list of the dependencies.
Upvotes: 3
Reputation: 9559
You can check the dependency analysis offered in the editors tools menu. This gives you an option to run the report on the Current Folder, which you can inspect to spot unused .m files. Other than this, I'm not aware of an automated way of doing this.
Upvotes: 6