how can i use sigma (summation ) in loop

4 Ansichten (letzte 30 Tage)
NAGA LAKSHMI KALYANI MOVVA
NAGA LAKSHMI KALYANI MOVVA am 28 Aug. 2021
how can i use sigma i.e summation in a loop

Antworten (1)

Chunru
Chunru am 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)
b = -0.4099

Kategorien

Mehr zu Loops and Conditional Statements finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by