Index exceeds matrix dimensions
1 次查看(过去 30 天)
显示 更早的评论
I dont Understand this error , i traced all the code and didnt find a reason for that , thanks :)
??? Index exceeds matrix dimensions.
Error in ==> Hassaan at 314
[r c]=size(GREEN{1,i});
0 个评论
采纳的回答
the cyclist
2012-4-29
Type
dbstop if error
before you run your code, and it should halt at this line when the error message is thrown. Then you can look at the values of your variables. Presumably, the value of i is such that it is trying to access an element of the variable GREEN that is beyond the bounds of the array.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrix Indexing 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!