how can i use sigma (summation ) in loop

1 view (last 30 days)
how can i use sigma i.e summation in a loop

Answers (1)

Chunru
Chunru on 28 Aug 2021
% 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

Categories

Find more on Mathematics in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!