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

3 次查看(过去 30 天)
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.

采纳的回答

Matt J
Matt J 2018-4-25
mode(nonzeros(yourArray)),
  2 个评论
Matt J
Matt J 2018-4-25
You're welcome, but please Accept-click the answer to certify that it addressed your question.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 MRI 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by