フィルターのクリア

Writing a matrix to a text file with proper space

1 回表示 (過去 30 日間)
itzhak mal
itzhak mal 2019 年 1 月 30 日
コメント済み: Walter Roberson 2019 年 1 月 30 日
Hi,
I tried writing a matrix to a text file using dlmwrite function, but it came out messed up.. no spaces and it looked terrible. How do I make it look spaced out properly between two columns and nicely aligned? I can't use xlswrite as the matrix has 2 million rows
Thanks!
  6 件のコメント
itzhak mal
itzhak mal 2019 年 1 月 30 日
Ok. This is what I meant. (attached screen shot) Any idea? :(
Walter Roberson
Walter Roberson 2019 年 1 月 30 日
Either dlmwrite with a 'precision' that has a leading count like the %20 that I showed (in which case each column will be the same size), or else fopen/fprintf/fclose using a format specifier that is appropriate for each column.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeText Files についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by