How to estimate the logical mean of multidimensional logical array???

3 commentaires

Stephen23
Stephen23 le 15 Mai 2017
mean(A(:))
Adam
Adam le 15 Mai 2017
What is the 'logical mean'?
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.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Matrices and Arrays dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by