Azzera filtri
Azzera filtri

save text in ascii file

42 visualizzazioni (ultimi 30 giorni)
Fiboehh
Fiboehh il 16 Mar 2011
hey i want to make a ascii file for a sinogram. First information with various variables but text like and then a few matrices with intensitys. The layout will be like: name place seize date arrays of intensitys
I have tried it with save('sino.s2d', '-all variables' ,'-ascii') and it give me a ascii file with all number, all the text like name-place ect is changed into numbers :s Anyone who knows ho to fix this? :d

Risposta accettata

Laura Proctor
Laura Proctor il 16 Mar 2011
You can use the FPRINTF function which requires more effort than using SAVE. But, you are able to set the formats (such as string or integer) for the output to the file. You can learn more about it in the documentation:

Più risposte (0)

Categorie

Scopri di più su Characters and Strings 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