Matlab Plot that changes with time
问题 I am trying to plot a figure that changes with time (think of it as plotting the shape of a pole as the wind passes through it, so I want to plot the shape at every second). To avoid the x axis limit changing frequently I want to fix it to the limits (max and min that I calculate before plotting). Here is a sample of my code: for i=1:1:numberofrows momentvaluesatinstant = momentvalues(i,:); figure(1) plot(momentvaluesatinstant,momentheader) drawnow title(sprintf('Moment profile along pile at