dlmwrite関数で列ベクトルをテキスト出力する際、列サイズが大きいと途中で改行されてしまう。
14 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
tetsu614
am 9 Aug. 2017
Beantwortet: tetsu614
am 21 Aug. 2017
dlmwrite関数を用いて1行5000列ほどの列ベクトルをtxt出力したいのですが、 出力されたtxtファイルが途中で改行されてしまいます。 回避する方法はありますか?
dlmwrite('hoge.txt', hoge, 'delimiter', ' ', 'precision', '%.6f', '-append');
0 Kommentare
Akzeptierte Antwort
michio
am 9 Aug. 2017
例えば下記のように 1行10000列のデータを hoge.txt に書き出してみましたが、数値データ自体は 1行に収まっていました。
hoge = rand(1,10000);
dlmwrite('hoge.txt', hoge, 'delimiter', ' ', 'precision', '%.6f', '-append');
このコマンドでも途中で改行されますか?
0 Kommentare
Siehe auch
Kategorien
Mehr zu 一般の演算 finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!