- In your code you are using a variables "min" and "max".
- these two are matlab inbult functions to find minimum and maximum value.
- Replace this variable with some other name .
why i am getting the error "Index exceeds matrix dimensions." someone please help me to point it out!
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
shivam saraswat
am 18 Okt. 2016
Kommentiert: shivam saraswat
am 18 Okt. 2016
here i extracted first 3x3 elements of the noise image and calculated max min and med by placing these 9 elements in matrix B.(first i placed these elements in A then extracted desired 9 elements from A and placed in B) then i compared it with every element and substituted with med if element is <min or>max, otherwise i didnt change the pixel value. i did it for entire first 3 columns then for 2,3,4 columns then for 3,4,5 columns and so on.. i am unable to get the cause of error in the code.. i have attached the code.. during the second iteration of p(when p=2) i get the error Index exceeds matrix dimensions. i do not know what is wrong.. someone please help me... thanks..
0 Kommentare
Akzeptierte Antwort
Stalin Samuel
am 18 Okt. 2016
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Matrix Indexing finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!