How can I create a .txt files from a cellarray that is 80x1 into 80 different files with the same name with different number in the end?
2 ビュー (過去 30 日間)
古いコメントを表示
Carlos Hernandez
2023 年 11 月 8 日
コメント済み: Carlos Hernandez
2023 年 11 月 8 日
LF{80x1} cell array
writematrix(LF{#},'LF#.txt','Delimiter','\t');
type LF#.txt
I want to create an inidvidual .txt file for each cell of the cell array with a succession of numbers without changing manually.
For example
cell array 1
LF{1} that creates a .txt file named LF1.txt
0 件のコメント
採用された回答
Walter Roberson
2023 年 11 月 8 日
for K = 1 : numel(LF)
filename = "LF" + K + ".txt";
writematrix(LF{K}, filename, 'Delimiter', '\t');
end
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Text Files についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!