Reputation: 1389
I would like to remove files(maybe, text files) in a folder by using matlab.
Does matlab provide related functions, or are there any other ways?
Upvotes: 1
Views: 5877
Reputation: 14342
Delete all files with a .mat extension in the /mytests/ folder:
delete('/mytests/*.mat')
See this link for documentation
Upvotes: 3