How to select all values of a cell array between two cells?

1 view (last 30 days)
I was previously using 3 xlsread functions, and I realized this probably wasn't the best way to go about it. I was reading some data from tables, so using xlsread, I was able to specify what cells I want read (in this case, B2:P14). How would I do something similar in matlab (because table/array size may vary, how would I just go about getting all data located after (2,2), instead of from (2,2) to (14,16), for example)?

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 21 Apr 2016
Ibro Tutic
Ibro Tutic on 21 Apr 2016
Yea I know, the excel spreadsheets are formatted ahead of time by people using the code, so that shouldn't be an issue. Thanks for the heads up.

Sign in to comment.

More Answers (0)


Find more on Data Import from MATLAB 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!