MATLAB: Importing multiple text files

data importtext file

Hi all,
I am trying to import multiple text files to matlab, the files name are specified in an array.
How can I use a for loop to import these text files?
Thx

Best Answer

See the FAQ
Note reading the filenames from an array is essentially the same as processing a dir() list or the file exchange "pick of the week" linked to there is a higher-level alternative if the idea is to do the same thing to all files.