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.
1 次查看(过去 30 天)
显示 更早的评论
please help
0 个评论
采纳的回答
Image Analyst
2015-2-9
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);
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Annotations 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!