Summation with For Loop 2
1 回表示 (過去 30 日間)
古いコメントを表示
Hi, wanted to ask how to i do summation for this loop? Thanks for any help.
2 件のコメント
Scott MacKenzie
2021 年 4 月 24 日
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.
採用された回答
Tarunbir Gambhir
2021 年 4 月 27 日
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 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Loops and Conditional Statements についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!