This works as I expected:
for i=1:100 hold on; plot(i,i^2); drawnow; end
Ploting the points as they come in the s
Your code correctly plots a 3-D curve. All you need to do to see it is add
view(3);
anywhere in your code.
Additionally, one hold on command is sufficient (i.e. you don't need to repeat it in every loop iteration).
hold on