clear gui axes after plot?

2 vues (au cours des 30 derniers jours)
Bekhtaoui Abdelhakim
Bekhtaoui Abdelhakim le 21 Avr 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.

Réponses (1)

Andreas Bernatzky
Andreas Bernatzky le 21 Avr 2019
  1 commentaire
Bekhtaoui Abdelhakim
Bekhtaoui Abdelhakim le 21 Avr 2019
thanks i'm gonna try it

Connectez-vous pour commenter.

Catégories

En savoir plus sur Migrate GUIDE Apps dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by