Formatting exported text data
1 回表示 (過去 30 日間)
古いコメントを表示
I need to export integers not in the form of scientific notation, for example 1.204218e+007. However matlab insists on exporting it like this when I write it to a .txt file.
dlmwrite('combine.txt',com,'delimiter',' ','precision',7,'newline','pc');
How can i fix this problem?
0 件のコメント
回答 (1 件)
nl2605
2013 年 7 月 19 日
Precision should be followed by %f. For more info you could go to help dlmwrite or to know how to change the precision values go to help fprintf. Its given there how to use %f. Hope it helps you.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Data Type Conversion についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!