Bonjour ,
j'ai un problème dans mon code Matlab et je n'arrive pas à localiser la faute, donc voilà:
Count_Local est un tableau à 16 valeurs entières
Remarque:dans les premiers itérations la variable "sub_local_index" peu prendre la valeur 0
j'obtiens ce message:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10 for j=1:height-block_size for i=1:width-block_size sub_local_index = floor(i*4/width)+floor(j*4/height)*4; Count_Local(sub_local_index)=Count_Local(sub_local_index)+1; end end
Count_Local(sub_local_index)=Count_Local(sub_local_index)+1;Attempted to access Count_Local(0); index must be a positive integer or logical.
Error in ==> DOcorriger>hblgr4 at 112
Partager