Question about loading multiple files
Ältere Kommentare anzeigen
Greetings,
I wrote an 'm' function to load several files recursively and do some processing/graphing.
If I declare the file names in a string array, then the code executes with no issue.
However, if I load all files with the dir() function, I get an error message after the 1st file is loaded. What am I missing?
DIR_STR=dir('*.mf4');
FILES= DIR_STR.name
for ii=1:5
FILE=FILES(ii,:)
disp(['ii = ' num2str(ii) ' -- File: ' FILE])
end
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu File Operations finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!