save data form matlab to .txt

2 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Data Type Conversion 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by