write a function to sum some elements

I'm trying to solve this
Write a function called square_wave that computes the sum sin 2

回答 (1 件)

Walter Roberson
Walter Roberson 2015 年 6 月 1 日

0 投票

total = 0;
for K = 1 : 10
total = total + some value
end

カテゴリ

ヘルプ センター および File ExchangeExternal Language Interfaces についてさらに検索

タグ

質問済み:

2015 年 5 月 31 日

回答済み:

2015 年 6 月 1 日

Community Treasure Hunt

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

Start Hunting!

Translated by