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);

Respuestas (1)

Matt J
Matt J el 18 de Feb. de 2021
Editada: Matt J el 18 de Feb. de 2021
Notice!
x=rand(5,500);
x=x(1:256,1:256);
Index in position 1 exceeds array bounds (must not exceed 5).

4 comentarios

Matt J
Matt J el 18 de Feb. de 2021
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).
Matt J
Matt J el 18 de Feb. de 2021
Editada: Matt J el 18 de Feb. de 2021
Yes, it is purposefully the same error message. You should see from my example why the error occurs.
What does this say
whos X
Hazhar Ahmed
Hazhar Ahmed el 18 de Feb. de 2021
Editada: Matt J el 19 de Feb. de 2021
X=imread('tumor.jpg');

Iniciar sesión para comentar.

Categorías

Preguntada:

el 17 de Feb. de 2021

Editada:

el 19 de Feb. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by