Concatenate string with table
6 次查看(过去 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!