Eliminate the var of the first line of .txt

1 次查看(过去 30 天)
This is my code,I don't want to have the first line in .txt(var_1....)
%---------------------
z = '//';
a1 = 'SystemMode';
a2 = 'SimulationTime';
A = table({a1,1,z;a2,100,z});
% Write data to text file
writetable(A,'TEST.txt','Delimiter',' ')
type 'TEST.txt'
How can I do

采纳的回答

madhan ravi
madhan ravi 2019-9-6
writetable(A,'TEST.txt','Delimiter',' ','writevariablenames',false)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 String Parsing 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by