How to save a double number to integer to a .txt file?
Mostrar comentarios más antiguos
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?
Respuestas (2)
Susan
el 28 de Mayo de 2012
0 votos
Titus Edelhofer
el 28 de Mayo de 2012
0 votos
Hi Susan,
you don't have to convert to int. Just round and use save with "-ascii".
Titus
Categorías
Más información sobre Logical en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!