Summation with For Loop 2
Ältere Kommentare anzeigen
Hi, wanted to ask how to i do summation for this loop? Thanks for any help.

2 Kommentare
Scott MacKenzie
am 24 Apr. 2021
If the f-terms are in arrays A and B. Then the solution is
sum(abs(A)) - abs(sum(B))
Of course, you'll need to do the work of computing A and B. But, your question was about summation.
Jwo Jiunn Kon
am 29 Apr. 2021
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Loops and Conditional Statements 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!