empty matrix when using textscan
古いコメントを表示
Hi, this is my file and it is called «1.dat»:
bou=200
bou=30480
bou=22860
bou=0
bou=497
number xfe fee prefue cefee ewee wef wfe wefn
1 13767 11061 0 208963921855920 74822197 208963921855920 0 900
2 13767 11061 0 208963949100942 74822207 208963949100942 450 890
3 13767 11061 0 208963981822687 74822217 208963981822687 450 860
4 13757 11051 0 208964003640637 74822227 208964003640637 390 840
i want to ignore the 6 first lines and i used:
D = cell2mat(textscan('1.dat', '%f%f%f%f%f%f%f%f%f', 'headerlines', 6))
but it keeps on returning me «empty matrix: 0-by-6» i've also tried putting 7 instead of 6 (because of the empty line but still doesnt work, same error)
what is wrong?
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Cell Arrays についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!