Open mat files
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi I have 6 different mat files in the C directory of my PC, how can I open them through a for loop and use them as an input to some other function?
Thanks.
0 Kommentare
Antworten (1)
Jan
am 1 Feb. 2012
It depends on the names of the files and the data they contain. Example:
for i = 1:6
name = sprintf('C:\file%d.mat', i);
data = load(name);
yourfunction(data.values);
end
But this is only a bold guess. Please explain any details, if you need a more exact explanation.
0 Kommentare
Siehe auch
Kategorien
Mehr zu File Operations 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!