why i getting this error index exceed matrix dimensions
Show older comments

1 Comment
Walter Roberson
on 7 Oct 2021
Unfortunately you did not show us the value locl(1) and you did not show us the code used to assign to locl(1) . All we can say is that whatever value locl(1) is, it is greater than 77.
Answers (1)
yanqi liu
on 8 Oct 2021
0 votes
sir,may be check loc1 is or not empty
1 Comment
Walter Roberson
on 8 Oct 2021
I was morally convinced that there was an error message about the limit being 77, but when I look again I was mistaken. Your point that locl might be empty is a good one.
Categories
Find more on Matrix Indexing 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!