how can i use sigma (summation ) in loop

1 回表示 (過去 30 日間)
NAGA LAKSHMI KALYANI MOVVA
NAGA LAKSHMI KALYANI MOVVA 2021 年 8 月 28 日
how can i use sigma i.e summation in a loop

回答 (1 件)

Chunru
Chunru 2021 年 8 月 28 日
% The input data
mc = 10;
a = randi(mc, 1); % alpha
l = randi(mc, 1); % l
b = sum((pi-a).*l)/(4*pi)
b = -0.4099

カテゴリ

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