Resizing plots in tiledlayout()
20 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Richard Miller
am 20 Aug. 2021
Beantwortet: Chunru
am 20 Aug. 2021
I need to plot two figures and I was using tiledlayout(2,1), but I want the top figure to take up about 1/3rd of the vertical space and the bottom plot to take up about 2/3rds of the vertical space. I've tried using uipanel but I can't seem to get it to work out right.
0 Kommentare
Akzeptierte Antwort
Chunru
am 20 Aug. 2021
tiledlayout(3,1);
nexttile;
plot(rand(10,1))
nexttile([2 1]) % span 2 rows and 1 colum in the tiledlayout
plot(rand(20,1))
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Annotations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!