save data form matlab to .txt

1 回表示 (過去 30 日間)
mohammed hussein
mohammed hussein 2018 年 1 月 22 日
コメント済み: mohammed hussein 2018 年 1 月 22 日
Hi
can anyone help me to save the data from the matlab to .txt file with has comma after each number. for example
A=[1 2 3 4 5 6 7 8 9];
is there any way to have A in .text and be like 1,2,3,4,5,6,7,8,9
thank you very much for helping

採用された回答

Fangjun Jiang
Fangjun Jiang 2018 年 1 月 22 日
csvwrite()
  3 件のコメント
Fangjun Jiang
Fangjun Jiang 2018 年 1 月 22 日
try csvwrite('test.txt',[1 2 3 4 5 6 7 8 9]);
mohammed hussein
mohammed hussein 2018 年 1 月 22 日
this is exactly what i want
thank You

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Import and Analysis についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by