How can I generate text file in loop?
Mostrar comentarios más antiguos
I need to generate text file in MATLAB which will be edited in every loop. When I use fopen without using fclose MATLAB gives error. and if I use fclose file is overwritten in every iteration and only data from last iteration is stored.
2 comentarios
Jan
el 7 de Abr. de 2014
Without seeing the code, we cannot guess, where the problem is. When you state, that you get an error, showing the code and posting a complete copy of the error message is the obligatory strategy to obtain help from the readers. So I suggest to edit the original question and provide the required information.
Ioannis
el 7 de Abr. de 2014
Suggestion, why don't you manipulate a .mat file, in which you can append data in each iteration, and then save the whole thing to .txt.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Entering Commands 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!