Index in position 1 exceeds array bounds (must not exceed 811).解决

小虎遇到的bug大概长下面这样。这个BUG是说你读取该矩阵不应该超过它的行数。
Index in position 1 exceeds array bounds (must not exceed 811).解决_第1张图片
打断点试一下,发现确实超出了811行(就本人程序而言)。
在这里插入图片描述
修改到遍历矩阵合适的值即可。

你可能感兴趣的:(MATLAB,bug,matlab)