The first loop in the previous post might as well be

for i = 1:n-1

Sorry, for the quantity of posts.

Reply via email to