Writing sums with a loop?

조회 수: 1 (최근 30일)
Vince Smith
Vince Smith 2019년 4월 8일
답변: Shivani Dixit 2021년 6월 9일
How would I express this with a loop in MATLAB?
x=absolute value of (1000-)
  댓글 수: 2
James Tursa
James Tursa 2019년 4월 8일
What have you done so far? What specific problems are you having with your code?
Adam Danz
Adam Danz 2019년 4월 8일
If you have no idea where to start, look up how to use these functions
  • abs()
  • sum()
  • for, end

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

답변 (1개)

Shivani Dixit
Shivani Dixit 2021년 6월 9일
MATLAB provides you with and easy to understand document that you can take advantage of. The functions that the above mentioned equation requires are inbuilt in matlab , you can perform the summation by either using loop or multiplication , since the summation part is independent of variable n. You can leverage the below documentations :

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by