Azzera filtri
Azzera filtri

how i can convert matrix to dat

40 visualizzazioni (ultimi 30 giorni)
george
george il 18 Set 2012
hi, how i can convert a mat lab matrix to dat file
i want to hold the lines (of matrix) and with space between the simbols

Risposta accettata

Wayne King
Wayne King il 18 Set 2012
Modificato: Wayne King il 18 Set 2012
You can just use save with the -ascii option.
x = randn(10,10);
save mymatrix.dat x -ascii
Or the forms:
save('mymatrix1.dat','x','-ascii','-tabs');
save('mymatrix2.dat','x','-ascii','-double','-tabs');
Also, see the help for dlmwrite()

Più risposte (0)

Categorie

Scopri di più su Convert Image Type in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by