From: reserved reserved on
Hi ,

How can I delete images that are displayed on an axes when a button is pressed ?
I mean I want to clear the axes from all images.

Thanks
From: Walter Roberson on
reserved reserved wrote:

> How can I delete images that are displayed on an axes when a button is
> pressed ?
> I mean I want to clear the axes from all images.

delete(findobj(AxisHandle, 'Type', 'image'))

But are you sure you only want to remove the axes and leave everything
else the same? Do you perhaps instead wish to use cla ?
From: Matt Fig on
A = image(rand(3));
delete(A) % Or see the help for CLA.
 | 
Pages: 1
Prev: Matlab Memory Leak
Next: Virus Transport equation