save text in ascii file

42 次查看(过去 30 天)
Fiboehh
Fiboehh 2011-3-16
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

采纳的回答

Laura Proctor
Laura Proctor 2011-3-16
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:

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Characters and Strings 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by