Concatenate string with table
11 ビュー (過去 30 日間)
古いコメントを表示
I want to save a txt file containing a header (string format with various information) followed by the data in columns (table format). OBS: The column names does not have to appear.
Ex:
>> header
header =
"BEGIN
START = 0.0
END
"
>> class(header)
ans =
'string'
>> tab_data
tab_data = 380004 x 7 table
0 件のコメント
採用された回答
Matt J
2023 年 6 月 5 日
writematrix(header,'filename.txt');
writetable(tab_data,'filename.txt',WriteVariableNames=false,WriteMode='append');
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Characters and Strings についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!