Index in position 1 exceeds array bounds.

2 views (last 30 days)
Hazhar Ahmed
Hazhar Ahmed on 17 Feb 2021
Edited: Matt J on 19 Feb 2021
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);

Answers (1)

Matt J
Matt J on 18 Feb 2021
Edited: Matt J on 18 Feb 2021
Notice!
x=rand(5,500);
x=x(1:256,1:256);
Index in position 1 exceeds array bounds (must not exceed 5).
  4 Comments
Hazhar Ahmed
Hazhar Ahmed on 18 Feb 2021
Edited: Matt J on 19 Feb 2021
X=imread('tumor.jpg');

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!