How to exclude some value from raster matrix
조회 수: 3 (최근 30일)
이전 댓글 표시
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
채택된 답변
Image Analyst
2015년 7월 16일
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(:));
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Equivalent Baseband Simulation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!