- 1st file which has only one row
- 2nd file which has multiple rows
Matlab is deleting first row of my table and setting it as table property VariableDescription
18 ビュー (過去 30 日間)
古いコメントを表示
Sorry I'm new to Matlab, maybe I'm asking dumb question but does anyone know why is Matlab setting first row of table as VariableDescription (property of table)? It is only happening when my table has only one row, when there are more row in the table it's not happening. Or does anyone know how to stop it from doing so? When this happens my table is size 0(rows)x2(colums) but it should be size of 1(rows)x2(colums)... I even tried to set 'VariableNamingRule' of table to 'preserve' as matlab were suggesting:
table = readtable('filewithtable.csv', 'VariableNamingRule', 'preserve');
But it didn't worked. Have you any tips what I can do?
1 件のコメント
採用された回答
Arif Hoq
2022 年 3 月 29 日
It should not work in that way.please try this
A=readtable('filewithtable.csv','ReadVariableName',false);
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!