How to hold plots in MatLab? - hold -- MatLab

 How to hold plots in MatLab? - hold -- MatLab


hold command


[description]


the hold command is used to set to hold  state of plots or not.
When the plot is hold, it will not disapear the next time you plot the other graph.
You will see two graphs will be overlapping.


hold on 
or 
hold ('on')

hold the state on
hold on the current plot.
it will not disapear the next time you plot the other graph.

hold off
or
hold ('off'')

hold the state off

e.g.

above fig. are about no 'hold on'



above fig. are about 'hold on'




hold 

toggle hold state between on and off.

hold (ax, ___)

set ax hold state.

more details on

Comments

Popular posts from this blog

How to check whether point is changed or not in MatLab? - ischange -- MatLab

Data distribution plots in MatLab -- MatLab