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!