![]() NOTE: In newer versions of MATLAB (R2016b and later), the dir function has recursive search capabilities! So you can do this to get a list of all *.m files in all subfolders of the current folder: dirData = dir('**/*.m') file size, content, creation date, etc.). In addition, I added the ability to apply a validation function to each file, allowing you to select them based on criteria other than just their names (i.e. It now gives you options to prepend the full path or return just the file name (incorporated from Doresoom and Oz Radiano) and apply a regular expression pattern to the file names (incorporated from Peter D). My newest code can be found on The MathWorks File Exchange: dirPlus.m. Update: Given that this post is quite old, and I've modified this utility a lot for my own use during that time, I thought I should post a new version. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |