Info

この質問は閉じられています。 編集または回答するには再度開いてください。

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 回表示 (過去 30 日間)
Yong Chen Chin
Yong Chen Chin 2015 年 1 月 15 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
d = dir('composite*.dat');
nfiles = length(d);
X = [];
for k = 1:nfiles
X = [X importdata(d(k).name)];
end

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by