Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
I have 30 .dat files named composite1.dat composite2.dat... etc. After importing them into matlab I need to ensure that the data is stored column-wise in a single matrix.(The name of the .DAT file refers to the column number it should be in matrix)
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
d = dir('composite*.dat');
nfiles = length(d);
X = [];
for k = 1:nfiles
X = [X importdata(d(k).name)];
end
0 Kommentare
Antworten (0)
Diese Frage ist geschlossen.
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!