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!