Eliminate the var of the first line of .txt

1 回表示 (過去 30 日間)
han han
han han 2019 年 9 月 6 日
コメント済み: han han 2019 年 9 月 6 日
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)
  1 件のコメント
han han
han han 2019 年 9 月 6 日
THX!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeString Parsing についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by