How can I insert my MATLAB figure (.fig) files into multiple subplots?
Show older comments
I have two MATLAB figure (.fig) files which I would like to insert into the subplots of a new figure.
Accepted Answer
More Answers (1)
Eric Sargent
on 9 Dec 2020
openfig('fig1.fig');
ax1=gca;
openfig('fig2.fig')
ax2=gca;
figure;
tcl=tiledlayout(1,2);
ax1.Parent=tcl;
ax1.Layout.Tile=1;
ax2.Parent=tcl;
ax2.Layout.Tile=2;
2 Comments
Eric Sargent
on 19 Jan 2022
Can you add some example code and/or screenshots, please? It's working with the examples I've been testing, so I'm curious to learn more about what's happening for you and Moritz.
Eric Sargent
on 10 May 2022
Thanks @Tony Castillo
Categories
Find more on Creating, Deleting, and Querying Graphics Objects in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!