Date: Sep 11, 2013 2:24 PM
Author: Sankalp Dayal
Subject: Change xlabel of subplot with already stored figure

I have an already stored figure which has 2 subplots. When I now open it and want to change the xlabel of first plot and use subplot(2,1,1) it creates a new plot.

h = gca;
%Here it creates a new plot instead of keeping the old one.
xlabel('Samples at 50 Hz')

I can comfortably do it using the plot browser but cant do it using the commands. I have large number of plots in which I have to change the xlabel, hence I need to write a script to do it.