Assigning Multiple Files to a Variable Name

3 vues (au cours des 30 derniers jours)
Naomi Gaggi
Naomi Gaggi le 12 Oct 2018
Modifié(e) : madhan ravi le 12 Oct 2018
Hi, I am trying to get a variable to = a list of file names in multiple folders. So, I have assigned...
s = {0012_20131122_130242.705000 0092_20131122_130242.705000
0013_20131122_130242.705000 0093_20131122_130242.705000
0014_20131122_130242.705000 0094_20131122_130242.705000
0015_20131122_130242.705000 0095_20131122_130242.705000
0016_20131122_130242.705000 0096_20131122_130242.705000
0017_20131122_130242.705000 0097_20131122_130242.705000
0018_20131122_130242.705000};
for kk = 1:numel(s);
t = spm_select('List', s, '.*');
........
end
I then want the program to run through the list of files and complete the commands. I cannot get the program to read the files, even when using single quotes.
Please let me know if there is a more efficient way for the program to read the files. Thanks!

Réponses (1)

madhan ravi
madhan ravi le 12 Oct 2018
Modifié(e) : madhan ravi le 12 Oct 2018

Catégories

En savoir plus sur Workspace Variables and MAT Files dans Help Center et File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by