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

このファイルを readmatrix 関数で読み込むと空の行が読み飛ばされてしまいます。
>> data = readmatrix('data.txt')
data =
1
2
3
4
5
6
空行も保持したままで読み込む方法があれば教えてください。
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で スプレッドシート についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!