Eliminate the var of the first line of .txt

1 visualizzazione (ultimi 30 giorni)
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

Risposta accettata

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

Più risposte (0)

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by