Hi, wanted to ask how to i do summation for this loop? Thanks for any help.

댓글 수: 2

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 2021년 4월 29일
Hi Scott,
Thank you for answering my confusion, I able to solve the problems based on your guide and documentation in MATLAB.

댓글을 달려면 로그인하십시오.

 채택된 답변

Tarunbir Gambhir
Tarunbir Gambhir 2021년 4월 27일

0 개 추천

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개)

카테고리

도움말 센터File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

질문:

2021년 4월 24일

댓글:

2021년 4월 29일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by