How to save a double number to integer to a .txt file?
Ältere Kommentare anzeigen
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?
Antworten (2)
Susan
am 28 Mai 2012
0 Stimmen
Titus Edelhofer
am 28 Mai 2012
0 Stimmen
Hi Susan,
you don't have to convert to int. Just round and use save with "-ascii".
Titus
Kategorien
Mehr zu Logical finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!