Finding correct data row in excel data file
Mostrar comentarios más antiguos
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
Respuesta aceptada
Más respuestas (1)
Azzi Abdelmalek
el 10 de Ag. de 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.
Categorías
Más información sobre Characters and Strings en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!