Filter löschen
Filter löschen

Help please. i have 2 axes plots on my GUI , i want to reset the output plot(clear the previous output from plot) as i press the load image image button.

3 Ansichten (letzte 30 Tage)
please help

Akzeptierte Antwort

Image Analyst
Image Analyst am 9 Feb. 2015
In the LoadImage button callback:
% Reset first axes.
axes(handles.axes1); % Whichever axes you want to reset.
cla('reset');
% Reset second axes.
axes(handles.axes2); % Whichever axes you want to reset.
cla('reset');
axes(handles.axes1); % Whichever axes you want to display in.
imshow(yourImage);
  1 Kommentar
Pradeep Gowda
Pradeep Gowda am 9 Feb. 2015
thank you it worked fine . but i have made my axes invisible, but now after executing this "axes(handles.axes1); cla('reset');" it becomes visble. is there a way to avoid this?

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Visual Exploration 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