I am writing a code to merge two plots and what I found on matlab community is the following code:
fh1 = open('Plot1.fig');fh2 = open('Plot2.fig');ax1 = get(fh1, 'Children');ax2 = get(fh2, 'Children');ax2h = get(ax2(1),'Children');copyobj(ax2h, ax1(1));
What I could not figure out was what does ax2(1) refer to?
Best Answer