Loading a complicated text file
显示 更早的评论
How might I load a text file with data organized like this:
X : 0.0160579
Y : 0.0611
Z : 0.0177048
Y-X-Y : 0.0602318
|
Z
The code I'm trying to use is:
data = dlmread(FileName,':',2,0);
I get an error that says, "Mismatch between file and format character vector.
Trouble reading 'Numeric' field from file (row number 1, field number 1) ==> X 0.0160579\n".
I've tried playing with the delimiter in dlmread and also using other codes like 'load' and 'textscan', with no success (each has their own problem with these files).
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Spreadsheets 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!