Dear experts,
how do I get the mode of a 3D array with dim [51 75 55]. It can only contain numbers from 0:12 and I'm not interested in the zeros.

 Réponse acceptée

Matt J
Matt J le 25 Avr 2018
mode(nonzeros(yourArray)),

2 commentaires

Gülizar Kaya
Gülizar Kaya le 25 Avr 2018
Thanks :)
Matt J
Matt J le 25 Avr 2018
You're welcome, but please Accept-click the answer to certify that it addressed your question.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

Community Treasure Hunt

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

Start Hunting!

Translated by