Finding correct data row in excel data file
Show older comments
Hi,
I have excel data files which I read and process in matlab, sometimes the logged data shifts and starts at row 10 instead of row 8, is there a way for matlab to automatically find where the data starts without having to manually set the row?
Below is a screenshot of what I mean:

Thanks
Accepted Answer
More Answers (1)
Azzi Abdelmalek
on 10 Aug 2012
that depends on what kind of data you have, string, numbers,...
[num,text,num_text]=xlsread(YourFile)
- num contains numeric data (class double)
- text contains string data (class cell)
- num_textt contains both numeric and string (class cell)
you don't need to know where are your data, unless there other contents then your matrix of data.
Categories
Find more on Characters and Strings 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!