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

댓글 수: 3

mean(A(:))
Adam
Adam 2017년 5월 15일
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.

댓글을 달려면 로그인하십시오.

답변 (1개)

카테고리

도움말 센터 및 File Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기

질문:

2017년 5월 15일

댓글:

2017년 5월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by