Simpl equestion about CUMSUM
Mostrar comentarios más antiguos
How can I rewrite the following code using cumsum?
for i=0:299
A(i+1)=sum(B > i);
end
Many thanks!
2 comentarios
Azzi Abdelmalek
el 14 de Jun. de 2013
What is the size of B?
Mohsen
el 14 de Jun. de 2013
Respuesta aceptada
Más respuestas (1)
Mohsen
el 14 de Jun. de 2013
0 votos
Categorías
Más información sobre Loops and Conditional Statements en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!