Borrar filtros
Borrar filtros

Write a matrix to a text file with a space between columns

12 visualizaciones (últimos 30 días)
Damith
Damith el 23 de Mayo de 2014
Comentada: Jan el 8 de Mzo. de 2018
Hi,
Does anybody know to write an matrix (3652500 rows and 3 columns) to a text file with a space between columns? I have MATLAB R2011b version.

Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 23 de Mayo de 2014
dlmwrite('yourfile',yourmatrix,'delimiter',' ')
  3 comentarios
hamed
hamed el 8 de Mzo. de 2018
Do you know how can I make 2 tabs space between the columns?
'\t' makes a tab and I need 2 tabs
Jan
Jan el 8 de Mzo. de 2018
What about '\t\t'?

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Data Import and Export en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by