MATLAB: Does the AXES command restore the minimized figure in MATLAB 7.1 (R14SP3)

axescurrentaxesfocusMATLABminimizerestore

I have a figure containing an axes, which I minimize after creation. I want to set the current axes to the axes I created, say my_axes, using the AXES command. I execute the following commands in MATLAB to perform this operation:
my_fig=figure;
my_axes=axes('position',[.2 .2 .6 .6],'tag','axesVar') % minimize the figure
axes(my_axes); % figure comes to focus
The above command causes the figure with handle my_fig to come into focus.

Best Answer

This enhancement has been incorporated in Release 2006b (R2006b). For previous product releases, read below for any possible workarounds:
This is intended behavior with the AXES function in MATLAB 7.1 (R14SP3) when it is called with a handle to an existing axes.The figure containing the handle to the axes is brought to focus in order to communicate visually to the user that the correct handle is being supplied to the AXES command.
To work around this issue, use the SET command, as shown below:
my_fig=figure;
my_axes=axes('position',[.2 .2 .6 .6],'tag','axesVar') % minimize the figure
set(my_fig,'CurrentAxes',my_axes) % figure remains minimized