why the only first row of the imported data using importdata is not correct
显示 更早的评论
I have following data copied from excel file and then pasted to a file "x.txt":
USName Height Width Thickness Area
- - - - in^2
L1x1x1/8 1 1 0.125 0.234375
then I use following commands to load the file
S = importdata('x.txt','\t');
and then check S.textdata and I got:
[1x34 char] [] [] [] []
'-' '-' '-' '-' 'in^2'
'L1x1x1/8' '' '' '' ''
Why the first row is not parsed? as
'USName' 'Height' 'Width' 'Thickness' 'Area'
I have another data in which I did the same but I got the correct info with following operations. Just do not understand why.
Please help. Thanks...
回答(1 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Spreadsheets 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!