Merging figures with subplots into a large figure with subplots
4 visualizzazioni (ultimi 30 giorni)
I have a question about the merging of figures. I have 5 figures (.fig) consisting of 4 subplots (2x2). I want to merge these figures into one figure with the size of 6x4 where the first original figure will be placed in the left top (6,4,1/6,4,2/6,4,5/6,4,6), the second in the right top (6,4,3/6,4,4/6,4,7/6,4,8) and so on. I tried several things with copyobj and findobj, but did not manage to figure out how to actually merge the subplots.
Can anyone help me with this problem?
Thanks in advance!
Amit Bhowmick il 29 Giu 2021
I had written this code to extract data from a figure file. Hope few modification will work for you.
clear all;close all;clc
axObjs = fig(ii).Children;
dataObjs = axObjs(jj).Children;
x = dataObjs.XData;
y = dataObjs.YData;