mean of logical array(s)
4 次查看(过去 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!