how can i use sigma (summation ) in loop

4 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Loops and Conditional Statements 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by