calculate an equation with index

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

Respuestas (1)

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

Categorías

Etiquetas

Preguntada:

el 2 de Dic. de 2014

Editada:

el 3 de Dic. de 2014

Community Treasure Hunt

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

Start Hunting!

Translated by