how can i use sigma (summation ) in loop
4 次查看(过去 30 天)
显示 更早的评论
how can i use sigma i.e summation in a loop
0 个评论
回答(1 个)
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)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Loops and Conditional Statements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!