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 日

1 投票

mode(nonzeros(yourArray)),

2 件のコメント

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

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で Neuroimaging についてさらに検索

質問済み:

2018 年 4 月 25 日

コメント済み:

2018 年 4 月 25 日

Community Treasure Hunt

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

Start Hunting!

Translated by