To update a plot with new data in matlab, you can use the handle to the plot object and set the 'XData' and 'YData' properties of the plot to the new data. Here is an example:
main.m276 chars14 lines
This will update the plot with the new data without creating a new plot and without changing any other properties of the plot.
gistlibby LogSnag