Filter löschen
Filter löschen

Summation with For Loop 2

2 Ansichten (letzte 30 Tage)
Jwo Jiunn Kon
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
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
Jwo Jiunn Kon am 29 Apr. 2021
Hi Scott,
Thank you for answering my confusion, I able to solve the problems based on your guide and documentation in MATLAB.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Tarunbir Gambhir
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.

Weitere Antworten (0)

Kategorien

Mehr zu Mathematics 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!

Translated by