how can i use sigma (summation ) in loop

1 visualización (últimos 30 días)
NAGA LAKSHMI KALYANI MOVVA
NAGA LAKSHMI KALYANI MOVVA el 28 de Ag. de 2021
Comentada: NAGA LAKSHMI KALYANI MOVVA el 1 de Sept. de 2021
how can i use sigma i.e summation in a loop

Respuestas (1)

Chunru
Chunru el 28 de Ag. de 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

Categorías

Más información sobre Mathematics en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by