how can i use sigma (summation ) in loop
7 views (last 30 days)
Show older comments
how can i use sigma i.e summation in a loop
0 Comments
Answers (1)
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)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!