why i getting this error index exceed matrix dimensions
显示 更早的评论

1 个评论
Walter Roberson
2021-10-7
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.
回答(1 个)
yanqi liu
2021-10-8
0 个投票
sir,may be check loc1 is or not empty
1 个评论
Walter Roberson
2021-10-8
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.
类别
在 帮助中心 和 File Exchange 中查找有关 Image Arithmetic 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!