clear gui axes after plot?

2 visualizaciones (últimos 30 días)
Bekhtaoui Abdelhakim
Bekhtaoui Abdelhakim el 21 de Abr. de 2019
Comentada: Bekhtaoui Abdelhakim el 21 de Abr. de 2019
Hello everyone
I'm working on an interface for my project the program of my project contains step, each step is made by an individual program
I managed to do the 'load file' and the first step 'illumination normalization' so the load image is plotted in axes1 and the result of the 2nd step(illumination normalization) is plotted in axes2
now how can I put the 2nd result in the first axis and clear the axis 2 for the 3rd step. know that each step uses the result of the old step to work
here is the pushbutton part
text_eq='Illumination Normalization';
h=uicontrol(FigWin,...
'Style','pushbutton',...
'Position',[0,300,80,20],...
'String','Illumination Normalization',...
'Callback',...
['subplot(AxesHandle1);image1=ma_hsv(image1);imagesc(image1);title(text_eq);']);
text_SCT='Skin Color Thresholdin';
h=uicontrol(FigWin,...
'Style','pushbutton',...
'Position',[0,280,80,20],...
'String','SCT',...
'Callback',...
['subplot(AxesHandle2);image1=ma_SCT(image1);imagesc(image1);title(text_SCT);']);
here is the mistake I have
Error using subplot (line 209)
Requires valid axes handle for input.
Error while evaluating UIControl Callback.

Respuestas (1)

Andreas Bernatzky
Andreas Bernatzky el 21 de Abr. de 2019

Categorías

Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by