Subplot graph by combining two obtained graphs.
Mostrar comentarios más antiguos
I have two figures now i want to combine these two figures in subplot way.
Respuestas (1)
KSSV
el 11 de Abr. de 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);
Categorías
Más información sobre Subplots en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!