Index in position 1 exceeds array bounds.

hello,
i have error in matlab code
Index in position 1 exceeds array bounds.
Error in dwt_haar (line 16)
X=X(1:256,1:256);

回答(1 个)

Notice!
x=rand(5,500);
x=x(1:256,1:256);
Index in position 1 exceeds array bounds (must not exceed 5).

4 个评论

Hazhar Ahmed's comment moved here:
thnk you for reply but the error is
Index in position 1 exceeds array bounds (must not exceed 5).
Yes, it is purposefully the same error message. You should see from my example why the error occurs.

请先登录,再进行评论。

类别

在 帮助中心 和 File Exchange 中查找有关 Matrix Indexing 的更多信息

编辑:

2021-2-19

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by