Total = 0
for i = 2:N
ThisTerm = whatever involving i
Display ThisTerm if you want
Total = Total + ThisTerm
Display Total if you want
end

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