save ascii file of integer numbers
Mostra commenti meno recenti
Hi I have a logical matrix of 1 and 0 obtained with isnan I want to save it as ascii file, but integer numbers how can I do it? thank you very much sincerely
Erika
Risposte (1)
Walter Roberson
il 25 Giu 2012
1 voto
If "save" with the -ascii flag does not work for you, then use dlmwrite() with the delimiter set to ' ' (that is, a single space).
1 Commento
Alexei Jolkin
il 3 Feb 2022
Yes, good idea! Like this, for example:
dlmwrite('indices.csv', indices, 'delimiter', ';', 'precision', '%d');
Categorie
Scopri di più su Characters and Strings in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!