How do I get the mode of a 3d-array?

4 Ansichten (letzte 30 Tage)
Gülizar Kaya
Gülizar Kaya am 25 Apr. 2018
Kommentiert: Matt J am 25 Apr. 2018
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.

Akzeptierte Antwort

Matt J
Matt J am 25 Apr. 2018
mode(nonzeros(yourArray)),
  2 Kommentare
Gülizar Kaya
Gülizar Kaya am 25 Apr. 2018
Thanks :)
Matt J
Matt J am 25 Apr. 2018
You're welcome, but please Accept-click the answer to certify that it addressed your question.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu MRI 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!

Translated by