reading string from a cell for importing data
Show older comments
Hi all,
I'd like to open several folders and sub-folders to import my data. I;ve found a function named "allfiles" and it reads all the data in folders and sub-folders and save them in a cell in string format. now I want to read from this cell and import data. The "allfiles" function returns all files below a directory with given extensions
% LIST = ALLFILES(DIR, EXT) finds all the files in the directory DIR or % one of its subdirectories (defined recursively) with an extension in % the list EXT. DIR must be a string. EXT may be a string to specify a % single extension, or a cell array of strings. The leading '.' in the % extension is omitted. The result is a cell array of strings. %
% Example: % filenames = allfiles('.', {'m' 'asv'}); % finds all the .m and .asv files in or below the current directory.
as you see in the function above, the directories of data are saved in cell and if I can read these directories and import the correspond data I've done my work!
could you help me to do this?
thanks in advance
Accepted Answer
More Answers (0)
Categories
Find more on File Operations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!