how to find the number of negative cells in matrix ?
9 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
how to find the number of negative cells in matrix
0 comentarios
Respuesta aceptada
Voss
el 12 de Nov. de 2022
A = randn(5) % 5-by-5 random matrix
nnz(A < 0) % number of elements of A that are < 0
2 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Matrices and Arrays 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!