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

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.

 Accepted Answer

dlmwrite('yourfile',yourmatrix,'delimiter',' ')

3 Comments

Do you know how can I make 2 tabs space between the columns?
'\t' makes a tab and I need 2 tabs

Sign in to comment.

More Answers (0)

Categories

Asked:

on 23 May 2014

Commented:

Jan
on 8 Mar 2018

Community Treasure Hunt

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

Start Hunting!