
I'd like a simple solution please.not something like re-writing the plot command. The command ‘hold on’ is used to retain our current plot & its axes properties in order to add subsequent graphic commands to our existing graph. I already have timearray and dt, that is 0:dt:length(tarray)dt-dt. Matlab’s ‘hold’ command determines whether the newly created graphic object will be added to the existing graph or will it replace the existing objects in our graph. I want to discrete it and use ifft to get correspond time series. How do I save the axis properties so I don't have to keep calling xlabel, etc in the loop? I've tried newplot, setting the Nextplot property, etc to no avail. I have a function in the frequency domain k(w). Now, (hold off) destroys all axis properties.
#Matlab hold on subplot update#
In the loop, I want to update both A and B with NEW plots, but I want the axis labels, and xlim and ylim to stay the same, WITHOUT having to call xlabel, xlim, etc every iteration.

I can tell there is an issue with the way I'm using the hold command, but can't pinpoint exactly what is wrong. MATLAB adjusts axes limits, tick marks, and tick labels to display the full range of data. How do I use subplot and hold command simultaneously This code works fine until I attempt to plot the bottom portion of the script. New plots use the next colors and line styles based on the ColorOrder and LineStyleOrder properties of the axes.


I (hold on), make several plots to B, then I (hold off), then start iterating. hold on retains plots in the current axes so that new plots added to the axes do not delete existing plots. I have a plot window, broken up into two subplots, lets call them A and B, which have different labels and limits. Matlab question: this might be really simple but I can't figure it out.I'm pretty new.
