Data spacing in dlmwrite command

Hi I want to space my columns in a spacing %8g%16g%16g%16g%8g%8g (there are 6 columns in the matrix) and write in a text file using the dlmwrite command.How do I give this command to implement this spacing in the matrix output data? Thanks.

Answers (1)

Jan
Jan on 22 Apr 2012
What about using fprintf directly?

Asked:

on 22 Apr 2012

Community Treasure Hunt

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

Start Hunting!