how to add a figure.fig file as subplot into a figure

조회 수: 15 (최근 30일)
shubham kumar gupta
shubham kumar gupta 2022년 5월 24일
댓글: shubham kumar gupta 2022년 5월 27일
I have a myfig.fig as 1x2 subplot
i have plotted another myfig2.fig figure with 1x4 and I want to append myfig.fig file into this myfig2.fig
figure,
subplot(1,4,1); imshow(img1);
subplot(1,4,2); imshow(img2);
subplot(1,4,3); plot myfig.fig

채택된 답변

Adit Alware
Adit Alware 2022년 5월 27일
Hi Shubham,
After looking at the resultant figure, I will suggest you to create two seperate figures namely fig1 and fig2.
Then copy the contents of these two into a new figure fig3 using copyobj function.
Please look at the following link for a detailed example:
Thanks

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Subplots에 대해 자세히 알아보기

태그

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by