Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

How can i create a figure which I can put on other?

1 Ansicht (letzte 30 Tage)
Daniel Fonsêca
Daniel Fonsêca am 1 Mai 2019
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
Hello all
I have a two figures - f1 and f2. I want to put the f2 on f1 and to use the scroll in it. I tried to it, put I didn't get it. Help me please!!!

Antworten (1)

Lance S
Lance S am 1 Mai 2019
I'm not sure what you're aiming to do, but you could use the hold function to plot two or more graphs on the same graph, like this:
figure
hold on;
plot(x1, y1)
plot(x2, y2)
Or you could use a subplot to put two or more graphs separately on one window:
figure
subplot(m,n,p1) % m is num of rows, n is num of columns, p is the index
plot(x1,y1)
subplot(m,n,p2)
plot(x2,y2)
It depends on what you want your output to look like.
  3 Kommentare
Daniel Fonsêca
Daniel Fonsêca am 1 Mai 2019
I want to do that, because I want change the information on a part of the first figure. I want to put statics texts, images and others things. When the user click on link, it shows an other figure with those informations. Could you understand better now?
Walter Roberson
Walter Roberson am 1 Mai 2019
MATLAB does not support putting one figure on top of another in any documented way. It is possible using a container object that is not intended for users to use.
However, the description you give suggests that you should just use two uipanel in a single figure.

Diese Frage ist geschlossen.

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by