Writing sums with a loop?

3 ビュー (過去 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 件のコメント
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 :

Community Treasure Hunt

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

Start Hunting!

Translated by