Effacer les filtres
Effacer les filtres

Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

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 vue (au cours des 30 derniers jours)
Yong Chen Chin
Yong Chen Chin le 15 Jan 2015
Clôturé : MATLAB Answer Bot le 20 Août 2021
d = dir('composite*.dat');
nfiles = length(d);
X = [];
for k = 1:nfiles
X = [X importdata(d(k).name)];
end

Réponses (0)

Cette question est clôturée.

Community Treasure Hunt

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

Start Hunting!

Translated by