How can I solve a dlmread error on A2016a?
Show older comments
I have been having an issue with producing a set of CTD data on Matlab for a few days and don't seem to understand how to solve this. I feel as though it may be an issue with importing data but I'm not 100% sure.
data=dlmread([name,'.cnv'],'',96,0);
Error using dlmread (line 147)
Mismatch between file and format character vector.
Trouble reading 'Numeric' field from file (row number 1, field number 1) ==> # </sensor>\n
Error in ctd1 (line 4)
data=dlmread([name,'.cnv'],'',96,0);
These are the error suggestions that come up, but not sure what they're suggesting as I'm quite new to Matlab and my understanding is still limited.
How can I solve the dlmread issue?
Is this issue related to importing data into Matlab?
Accepted Answer
More Answers (1)
Walter Roberson
on 21 Dec 2019
0 votes
You need to increase your 96 to (at least) 97.
Categories
Find more on Spreadsheets in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!