save data form matlab to .txt

2 visualizzazioni (ultimi 30 giorni)
mohammed hussein
mohammed hussein il 22 Gen 2018
Commentato: mohammed hussein il 22 Gen 2018
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

Risposta accettata

Fangjun Jiang
Fangjun Jiang il 22 Gen 2018
csvwrite()
  3 Commenti
Fangjun Jiang
Fangjun Jiang il 22 Gen 2018
try csvwrite('test.txt',[1 2 3 4 5 6 7 8 9]);
mohammed hussein
mohammed hussein il 22 Gen 2018
this is exactly what i want
thank You

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Data Type Conversion in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by