Subplot graph by combining two obtained graphs.

답변 (1개)

KSSV
KSSV 2022년 4월 11일

1 개 추천

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);

카테고리

태그

질문:

2022년 4월 11일

답변:

2022년 4월 11일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by