how to use loop for sum without using cumsum?
Ältere Kommentare anzeigen
i want sum without using 'cumsum'
can i get s with loop:
s1 = x1;
s2 = x1+x2;
s3 = x1+x2+x3
s4= x1+x2+x3+x4; and so on upto s100
s = [s1;s2;s3;s4......;s100]
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Numerical Integration and Differentiation finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!