How to make two spaces a delimiter?

27 views (last 30 days)
I have to have data delimited by two spaces ' ' and cannot use a tab. I tried to use this line of code...
dlmwrite(filename1,M,'-append','delimiter',' ');
but I get an error in my code that it is not a valid delimiter. Please help! Thanks!

Accepted Answer

madhan ravi
madhan ravi on 15 Nov 2018
dlmwrite(filename1,M,'-append','delimiter','\t')

More Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!