The figure closed after pressing push button?

3 Ansichten (letzte 30 Tage)
HASHEM RAMADAN
HASHEM RAMADAN am 3 Apr. 2018
Kommentiert: HASHEM RAMADAN am 3 Apr. 2018
Guys, I am creating a figure and I have in that figure a push button for executing *.m file. after pressing in that push button the figure will be closed immediately. How to prevent the figure to be closed?
the code I am using is simple as follows:
% --- Executes on button press in btnProceesImage.
function btnProceesImage_Callback(hObject, eventdata, handles)
parasite1;
viewresults;
  2 Kommentare
Christian Dieterich
Christian Dieterich am 3 Apr. 2018
Bearbeitet: Christian Dieterich am 3 Apr. 2018
Maybe you have in one of the two functions the command "close" or "close all" ? This command closes all opened figures.
HASHEM RAMADAN
HASHEM RAMADAN am 3 Apr. 2018
Ok correct. Thanks, totally I forgot this point

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Interactive Control and Callbacks 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!

Translated by