Loading a complicated text file
Afficher commentaires plus anciens
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).
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Spreadsheets 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!