Akzeptierte Antwort

Sugar Daddy
Sugar Daddy am 16 Jul. 2020
Bearbeitet: Sugar Daddy am 17 Jul. 2020

1 Stimme

R2020a

close all
open('Deney 1_1.fig')
open('Deney 1_2.fig')
open('Deney 1_3.fig')
%
f1 = figure(1);
f2 = figure(2);
f3 = figure(3);
f4 = figure;
copyobj(f1.Children,f4);
copyobj(f2.Children,f4);
copyobj(f3.Children,f4);
ax_all = findobj(f4,'Type','axes');
f = figure;
tiledlayout(3,3)
for i =9:-1:1
nexttile
ax_all(i).Position =get(gca,'Position');
end
close(f)
Pay my Regards to Esra Bilgiç

For Previous Versions

close all
open('Deney 1_1.fig')
open('Deney 1_2.fig')
open('Deney 1_3.fig')
%
f1 = figure(1);
f2 = figure(2);
f3 = figure(3);
f4 = figure;
copyobj(f1.Children,f4);
copyobj(f2.Children,f4);
copyobj(f3.Children,f4);
ax_all = findobj(f4,'Type','axes');
f = figure;
for ii =9:-1:1
subplot(340-ii)
ax_all(ii).Position =get(gca,'Position');
end
close(f)
And again
Pay my Regards to Esra Bilgiç xD

5 Kommentare

Thanks Sugar Daddy. I ran your code but the following error occurred:
Undefined function or variable 'tiledlayout'.
Error in Untitled (line 15)
tiledlayout(3,3)
I use MATLAB 2015a. Could it be related to the version of the program?
Sugar Daddy
Sugar Daddy am 17 Jul. 2020
Bearbeitet: Sugar Daddy am 17 Jul. 2020
yes, tiled layout is new in R2020a
for old version we have subplot
see the updated answer
Abdullah Türk
Abdullah Türk am 17 Jul. 2020
Thank you very much.
Sugar Daddy
Sugar Daddy am 18 Jul. 2020
Lütfen cevabımı kabul et.
Esra Bilgiç'e de saygılar sunarım
Abdullah Türk
Abdullah Türk am 18 Jul. 2020
Hi again Sugar Daddy,
I installed MATLAB 2020a and run the code you suggested. I reached my goal.
By the way, I don't really follow the world of celebrities :).
Thank you very much :).

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Printing and Saving finden Sie in Hilfe-Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by