calculate an equation with index

2 Ansichten (letzte 30 Tage)
Dija
Dija am 2 Dez. 2014
Bearbeitet: Dija am 3 Dez. 2014
how can i calculate this equation kon=k1n1+k2n2+....kr-1nr-1

Antworten (1)

Thorsten
Thorsten am 2 Dez. 2014
x = 0:N-1;
kon = sum(x.^2);

Kategorien

Mehr zu Mathematics finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by