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

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