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

このファイルを readmatrix 関数で読み込むと空の行が読み飛ばされてしまいます。
>> data = readmatrix('data.txt')
data =
1
2
3
4
5
6
空行も保持したままで読み込む方法があれば教えてください。
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur スプレッドシート dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!