Subplot graph by combining two obtained graphs.
이전 댓글 표시
I have two figures now i want to combine these two figures in subplot way.
답변 (1개)
KSSV
2022년 4월 11일
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);
카테고리
도움말 센터 및 File Exchange에서 Subplots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!