The following stackoverflow qestion:
Matlab: How to obtain all the axes handles in a figure handle?
identifies how to get handles to all of the axes from a figur
From linkaxes, the code you want is:
linkaxes
ax = findobj(gcf,'type','axes','-not','Tag','legend','-not','Tag','Colorbar');
This will return the handles of all the data axes in the current figure.