Subplot graph by combining two obtained graphs.
Afficher commentaires plus anciens
I have two figures now i want to combine these two figures in subplot way.
Réponses (1)
KSSV
le 11 Avr 2022
h1 = openfig('Flow_rate_clot_M.fig','reuse'); % open figure
ax1 = gca; % get handle to axes of figure
h2 = openfig('Flow_rate_clot_n.fig','reuse');
ax2 = gca;
h3 = figure; %create new figure
s1 = subplot(2,1,1); %create and get handle to the subplot axes
s2 = subplot(2,1,2);
fig1 = get(ax1,'children'); %get handle to all the children in the figure
fig2 = get(ax2,'children');
copyobj(fig1,s1); %copy children to new parent axes i.e. the subplot axes
copyobj(fig2,s2);
Catégories
En savoir plus sur Subplots dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!