Index in position 1 exceeds array bounds

Stuck.....Please, help me check my work.....
Here is my code and my error

1 Comment

You need to look at the size of grafq. It appears you are trying to index into it beyond its size.

Sign in to comment.

Answers (2)

Perhaps you want the entire column. In that case, just do
P_rec_total = grafq(:, 1); % Extract P_rec_total from column 1.
Jan
Jan on 25 Mar 2021
The error message is clear: The data imported from the Excelfile have 25 rows only. Then you cannot obtain the rows 26:325

Categories

Asked:

on 25 Mar 2021

Answered:

Jan
on 25 Mar 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!