Please I need help! I have a code that produces a matrix 50*50 and it only contaiedn number 1s and zeros. I want this matrix to be transfered to a text file as simple as that. I want it to be 50 columes and 50 rows seperated by one space.
thank you very much

 Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 9 de Abr. de 2014
Editada: Azzi Abdelmalek el 9 de Abr. de 2014
dlmwrite('file.txt',your_matrix)
or
dlmwrite('file.txt',your_matrix,'delimiter','\t','newline','pc')

Más respuestas (0)

Categorías

Más información sobre Characters and Strings en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 9 de Abr. de 2014

Comentada:

el 9 de Abr. de 2014

Community Treasure Hunt

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

Start Hunting!

Translated by