clear gui axes after plot?

2 Ansichten (letzte 30 Tage)
Bekhtaoui Abdelhakim
Bekhtaoui Abdelhakim am 21 Apr. 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.

Antworten (1)

Andreas Bernatzky
Andreas Bernatzky am 21 Apr. 2019

Kategorien

Mehr zu Migrate GUIDE Apps finden Sie in Help Center und File Exchange

Tags

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by