I'm doing something like this:
imagesc(pher_mat)hold onfor i=1:5000 figure(1) plot(x,y)end
But this is adding more and more plots to the figure and I only want the first imagesc(pher_mat) and the last of each loop to be plotted. And I don't want imagesc(pher_mat) inside the loop of course.
Thanks
Best Answer