combining figures of Classification Learner application

Hello everbody, Figures showing two different curves in Matlab can be combined with the following codes. For example, sine and cosine curves;
There is another situation in different figures obtained from the Classification Learner application. Rather than overlapping, the figures cover each other.
We would be glad if you could help with this.
Attached are the corresponding figure files.
Best regards...

Answers (1)

fh1 = open('cs.fig');
fh2 = open('sn.fig');
ax1 = get(fh1, 'Children');
ax2 = get(fh2, 'Children');
ax2p = get(ax2(1),'Children');
copyobj(ax2p, ax1(1));

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Asked:

on 4 Nov 2022

Answered:

on 4 Nov 2022

Community Treasure Hunt

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

Start Hunting!