Need to get a figure

2 visualizaciones (últimos 30 días)
Dinouk Goonewardena
Dinouk Goonewardena el 7 de Ag. de 2020
Comentada: Walter Roberson el 7 de Ag. de 2020
I have 2 figures, one is a GUI with a tag figure1 and another Figure 1 opened seperately which is graph, I tried using gcf but it only recongizes the GUI (figure1). How do I get tthe other graph (Figure 1)?

Respuestas (1)

Image Analyst
Image Analyst el 7 de Ag. de 2020
hFig1 = figure; % Create first figure.
hFig2 = figure; % Create second figure.
figure(hFig1); % Switch to first figure.
% Do stuff - plotting, etc.
figure(hFig2); % Switch to second figure.
% Do stuff - plotting, etc.
  3 comentarios
Sudheer Bhimireddy
Sudheer Bhimireddy el 7 de Ag. de 2020
Try creating a figure handle inside the SavePlot_PP() and return it.

Iniciar sesión para comentar.

Categorías

Más información sobre Graphics Object Identification en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by