clear gui axes after plot?

2 次查看(过去 30 天)
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.

回答(1 个)

Andreas Bernatzky
Andreas Bernatzky 2019-4-21

类别

Help CenterFile Exchange 中查找有关 Migrate GUIDE Apps 的更多信息

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by