calculate an equation with index

how can i calculate this equation kon=k1n1+k2n2+....kr-1nr-1

Réponses (1)

Thorsten
Thorsten le 2 Déc 2014

0 votes

x = 0:N-1;
kon = sum(x.^2);

Catégories

Question posée :

le 2 Déc 2014

Modifié(e) :

le 3 Déc 2014

Community Treasure Hunt

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

Start Hunting!

Translated by