フィルターのクリア

Write a function that takes as input a vector x and uses a for loop to calculate the sum of the vector x. It should output the sum of the vector.

2 ビュー (過去 30 日間)
I have no idea what to do and I'm not allowed to use built-in matlab functions
  2 件のコメント
Stephen23
Stephen23 2020 年 2 月 7 日
Start by doing these tutorials:
Most of what you need to know is contained in them.

サインインしてコメントする。

回答 (1 件)

royed
royed 2020 年 2 月 7 日
In principle I shouldn't answer the question.
1) Define Array
2) for loop indexing the elements of the array till ir reaches the last element

カテゴリ

Help Center および File ExchangeLoops and Conditional Statements についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by