mean of logical array(s)
2 ビュー (過去 30 日間)
古いコメントを表示
How to estimate the logical mean of multidimensional logical array???
3 件のコメント
Walter Roberson
2017 年 5 月 15 日
Good question. It might be the majority. If so then
majority = nnz(A)*2 > numel(A);
The majority is not well defined if exactly half are one way and half are the other way.
回答 (1 件)
参考
カテゴリ
Help Center および File Exchange で Special Functions についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!