Filter löschen
Filter löschen

save text in ascii file

42 Ansichten (letzte 30 Tage)
Fiboehh
Fiboehh am 16 Mär. 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

Akzeptierte Antwort

Laura Proctor
Laura Proctor am 16 Mär. 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:

Weitere Antworten (0)

Kategorien

Mehr zu Characters and Strings finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by