Load a file by using a string in which the filename is stored
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I use these commands to create string with all names of the files that have a mat extension.
files = dir('*mat'); filenames = {files.name};
Now I want to load one of these files by just using a number
load(filenames(1)) or load filenames(1) or load('filenames(1)')
But none of these commands work. Any ideas?
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Cell Arrays finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!