how to calculate no of 1 present in binary matrix in matalb
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
how to calculate no of 1 present in binary matrix in matalb
0 Commenti
Risposte (1)
Azzi Abdelmalek
il 15 Mar 2014
Modificato: Azzi Abdelmalek
il 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 Commenti
Vedere anche
Categorie
Scopri di più su Get Started with MATLAB in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!