How to save a double number to integer to a .txt file?
显示 更早的评论
Hi, I got some double type numbers in Matlab, I want to change them to int type,and save the int type numbers on a .txt file. Can someone tell me how to do it?
回答(2 个)
Titus Edelhofer
2012-5-28
0 个投票
Hi Susan,
you don't have to convert to int. Just round and use save with "-ascii".
Titus
类别
在 帮助中心 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!