How count the number of occurence beyond a threshoold value in a matrix

2 visualizzazioni (ultimi 30 giorni)
Suppose there is a matrix of a = 512*512 elements. What is the count of the elements having more than 255 in the matrix? Kindly suggest.?

Risposta accettata

Andrei Bobrov
Andrei Bobrov il 17 Nov 2017
sum(a(:)>255)

Più risposte (0)

Categorie

Scopri di più su Image Processing Toolbox in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by