Skipping a line no delimiters in an array
Show older comments
Hi,
I have read in an excel file of data into an array and all the data has the same number of delimiters per line. I am trying to seperate this data by the "," delimiter which is already in the file which is no problem. However, every now and then there will be a row of just text with 0 delimiters that I would like to skip past when reading the array i have read the file into. These rows are just title rows explaining whats below, but I do not need these in the final array, just the raw data.
How can I skip past these rows? The row numbers for these rows will vary for each file i read in, so I am trying to avoid a solution where i skip past a line number.
Thank you in advance for your help
3 Comments
Scott MacKenzie
on 26 Oct 2021
Are the data in a .csv file? It might help if you post the data.
Ive J
on 26 Oct 2021
Can you provide a working example?
Walter Roberson
on 26 Oct 2021
We need to know if this is a text file (such as .csv) or a .xlsx file.
Accepted Answer
More Answers (0)
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!