How to merge data’s of multiple dot mat files in one dot matfile (one table)
2 ビュー (過去 30 日間)
古いコメントを表示
Yared Daniel
2021 年 5 月 22 日
コメント済み: Sulaymon Eshkabilov
2021 年 5 月 23 日
Hello every one
I have multiple dot mat files like x0.mat, x1.mat, x2.mat, x3.mat
and each file contains 1D time series data. What I need is to merge those data found in each dot mat file in one dot mat file, which contains the name of the files with corresponding data's. I have attached the dot mat files
Thanks for your help
0 件のコメント
採用された回答
Sulaymon Eshkabilov
2021 年 5 月 22 日
Hi,
Here is a simple solution:
for ii=1:4
FN= strcat(['x' num2str(ii-1)], '.mat');
D=load(FN);
X_all(ii,:)=D.x; % OR: % x(ii,:)=D.x;
end
save('ALL.mat', 'X_all') % OR: save('ALL.mat', 'x')
Good luck.
6 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Descriptive Statistics についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!