Sum of certain value in a matrix
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
EMIRA SYAMIMI AHMAD SUBRI
el 3 de Mayo de 2017
Comentada: Andrei Bobrov
el 3 de Mayo de 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 comentarios
Respuesta aceptada
Más respuestas (2)
Ver también
Categorías
Más información sobre Logical en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!