how to calculate no of 1 present in binary matrix in matalb
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
how to calculate no of 1 present in binary matrix in matalb
0 commentaires
Réponses (1)
Azzi Abdelmalek
le 15 Mar 2014
Modifié(e) : Azzi Abdelmalek
le 15 Mar 2014
not(A)
% Example
A=[1 0; 0 0]
B=not(A)
B=
[0 1
1 1]
% or maybe you mean number by no
out=sum(A(:))
0 commentaires
Voir également
Catégories
En savoir plus sur Sources dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!