You would need to call "hold on" after you've made the first call to plot. Otherwise a new call to plot blows away your previous stuff.
But rather than plotting each and every point one at a time, I'd recommend plotting the whole array in one single call to plot() after your loop has finished.
Also, I believe you can edit your post to pick a more descriptive subject line than "matlab error" such as "plotting trouble" or something like that.