calculate an equation with index

2 次查看(过去 30 天)
Dija
Dija 2014-12-2
编辑: Dija 2014-12-3
how can i calculate this equation kon=k1n1+k2n2+....kr-1nr-1

回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 Mathematics 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by