Index in position 2 exceeds array bounds.
Show older comments
I am getting this error for following code to export the the data from graph.

7 Comments
KSSV
on 4 Dec 2022
Check the size of the variable num.
whos num
It seems, num is only a array with once column.
Venkata
on 4 Dec 2022
Venkata
on 4 Dec 2022
Venkata
on 4 Dec 2022
Dyuman Joshi
on 4 Dec 2022
The variable num is empty, as it shows in its size. You can't access any elements from it.
Check if the excel file is empty or not. What are the contents of the excel file?
Venkata
on 4 Dec 2022
Jan
on 4 Dec 2022
Well, yes, of course you should use an Excel file with values.
Answers (0)
Categories
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!