calculate an equation with index

1 visualizzazione (ultimi 30 giorni)
Dija
Dija il 2 Dic 2014
Modificato: Dija il 3 Dic 2014
how can i calculate this equation kon=k1n1+k2n2+....kr-1nr-1

Risposte (1)

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

Categorie

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

Community Treasure Hunt

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

Start Hunting!

Translated by