Using MATLAB, calculate a sum from within a script, by adding the individual elements together

I can do the sum generally on matlab but I do not know to to add the individual elements.

댓글 수: 2

You can find guidelines for posting homework on this forum here. If you have trouble with Matlab basics you may consider doing the Onramp tutorial (which is provided for free by Mathworks).
Not sure what "I can do the sum generally" means. Can you do it with a for loop, or with the sum() function, or both? If you can do the sum of the first 20 terms, then you are summing the individual terms, regardless of exactly how you do it. Be explicit on what you need help with.

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

답변 (0개)

카테고리

도움말 센터File Exchange에서 Programming에 대해 자세히 알아보기

질문:

2021년 8월 4일

댓글:

2021년 8월 5일

Community Treasure Hunt

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

Start Hunting!

Translated by