how can i use sigma (summation ) in loop

1 visualizzazione (ultimi 30 giorni)
how can i use sigma i.e summation in a loop

Risposte (1)

Chunru
Chunru il 28 Ago 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

Categorie

Scopri di più su Mathematics in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by