Simpl equestion about CUMSUM
Ältere Kommentare anzeigen
How can I rewrite the following code using cumsum?
for i=0:299
A(i+1)=sum(B > i);
end
Many thanks!
Akzeptierte Antwort
Weitere Antworten (1)
Mohsen
am 14 Jun. 2013
0 Stimmen
Kategorien
Mehr zu Loops and Conditional Statements finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!