I'm writing a script to resize any figure given to me, and I'd like to get the rows and columns of a subplot. For instance, if someone gave me a figure created by:
hfig = figure;
haxes = subplot(3,4,1);
...
Is there a property in the figure or axes handles that tells me that the figure has 3 rows and 4 columns? I need to resize each axis, and knowing the rows and columns is important so I know how to resize them.