Summation with For Loop 2
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Jwo Jiunn Kon
am 24 Apr. 2021
Kommentiert: Jwo Jiunn Kon
am 29 Apr. 2021
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.
Akzeptierte Antwort
Tarunbir Gambhir
am 27 Apr. 2021
If you want to compute the sum of the f-terms as symbolic functions, you can use the symsum function to get the sum of your series. You can refer the examples on the documentation page to understand how to use this function.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Loops and Conditional Statements finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!