Index in position 1 exceeds array bounds.

2 vues (au cours des 30 derniers jours)
Hazhar Ahmed
Hazhar Ahmed le 17 Fév 2021
Modifié(e) : Matt J le 19 Fév 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);

Réponses (1)

Matt J
Matt J le 18 Fév 2021
Modifié(e) : Matt J le 18 Fév 2021
Notice!
x=rand(5,500);
x=x(1:256,1:256);
Index in position 1 exceeds array bounds (must not exceed 5).
  4 commentaires
Image Analyst
Image Analyst le 18 Fév 2021
What does this say
whos X
Hazhar Ahmed
Hazhar Ahmed le 18 Fév 2021
Modifié(e) : Matt J le 19 Fév 2021
X=imread('tumor.jpg');

Connectez-vous pour commenter.

Catégories

En savoir plus sur Matrix Indexing dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by