Clear Filters
Clear Filters

save text in ascii file

42 views (last 30 days)
Fiboehh
Fiboehh on 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

Accepted Answer

Laura Proctor
Laura Proctor on 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:

More Answers (0)

Categories

Find more on Characters and Strings in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!