Sum of certain value in a matrix
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
EMIRA SYAMIMI AHMAD SUBRI
am 3 Mai 2017
Kommentiert: Andrei Bobrov
am 3 Mai 2017
I have a 241 x 340 matrix that contains only 1 and 0 value scattered over the matrix. My question is how can I calculate the sum value of 1 in the matrix? Thank You in advance. for example
A = [0 0 0 0 1 1 1 1 0 0 1 1 1 0; 1 1 1 0 0 1 1 1 0 0 0 1 1 0]
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (2)
Siehe auch
Kategorien
Mehr zu Data Distribution Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!