Counting elements of a matrix/array
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Alex Flores
el 22 de Abr. de 2017
Editada: Alex Flores
el 22 de Abr. de 2017
I have a 1000x1000 array of uniformly distributed random numbers between -1 to 1. I need to come up with a way to count how many negative numbers are generated are in the array without using loops. I was able to do it with loops, but I am struggling with trying to figure out how to do it without loops. any answer is very appreciated :)
0 comentarios
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre Loops and Conditional Statements 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!