Export to .txt file

Hi everyone. I was trying to create a txt file so i can strore some inputs in there. I have a problem though. I save alot of stuff in there and when i use "type" and print it inside Matlab it looks ok, but when i open the file with notepad there are no spaces or new lines...its just a row of text. How can i fix that?

 Respuesta aceptada

Walter Roberson
Walter Roberson el 17 de En. de 2012

0 votos

When you use fopen(), use 'wt' rather than just 'w'
The part about there being no spaces does not sound familiar to me at the moment.

3 comentarios

Raldi
Raldi el 17 de En. de 2012
thanks Walter it seems that i am counting on you atleast ones a day hehe.
Now if you caould also answer me the other question on how to automatically autoscale a scope i could finally go to sleep.
Walter Roberson
Walter Roberson el 17 de En. de 2012
Sorry, I am not familiar with Simulink.
Raldi
Raldi el 17 de En. de 2012
Its ok, thanks anyway.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Desktop en Centro de ayuda y File Exchange.

Productos

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by