How to exclude some value from raster matrix
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Karolina
am 16 Jul. 2015
Kommentiert: Karolina
am 16 Jul. 2015
I have a raster matrix with float values. I would like to find the minimum, median, mean, and the maximum values of my data, but when I use minA=min(A) I am receiving -1.797693134862316e+308 what represent the pixels with no data. How to exclude this value from my evaluation?
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 16 Jul. 2015
Reassign bogus values to something else, like 0 or infinity or nan. Make sure it's some value that won't also mess up your max calculation:
A(A<0) = 0;
minA = min(A(:));
2 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Logical 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!