KKS
KKS

Reputation: 1389

Removing files in a folder by using matlab

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

Answers (1)

Tony Vincent
Tony Vincent

Reputation: 14342

Delete all files with a .mat extension in the /mytests/ folder:

 delete('/mytests/*.mat') 

See this link for documentation

Upvotes: 3

Related Questions