calculate an equation with index

Answers (1)

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

Asked:

on 2 Dec 2014

Edited:

on 3 Dec 2014

Community Treasure Hunt

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

Start Hunting!