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

このファイルを readmatrix 関数で読み込むと空の行が読み飛ばされてしまいます。
>> data = readmatrix('data.txt')
data =
1
2
3
4
5
6
空行も保持したままで読み込む方法があれば教えてください。
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre スプレッドシート en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!