readmatrix 関数で、空の行を読み飛ばさずに読み込むことはできますか?
Ältere Kommentare anzeigen
以下のような、空の行を含む 1 列だけのテキストファイルがあります。
(data.txt)

このファイルを readmatrix 関数で読み込むと空の行が読み飛ばされてしまいます。
>> data = readmatrix('data.txt')
data =
1
2
3
4
5
6
空行も保持したままで読み込む方法があれば教えてください。
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu スプレッドシート finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!