From: Yair Altman on
"Adrian Wanner" <wannerad(a)ini.phys.ethz.ch> wrote in message <hgtbok$riv$1(a)fred.mathworks.com>...
> Hi all,
> I would like to set a callback function that is called whenever any property of a certain figure is changed (eg. if a the 'color' or 'position' property has changed, etc.). There is probably a Java-based solution. However, I couldn't figure it out so far. Any suggestions?
> Cheers,
> Adrian

You can use the PropListener utility from the Matlab File Exchange:
http://www.mathworks.com/matlabcentral/fileexchange/18301-proplistener-add-a-callback-to-property-value-getset-event

PropListener uses the undocumented handle.listener function, which is described here:
http://UndocumentedMatlab.com/blog/continuous-slider-callback/#Property_Listener

Yair Altman
http://UndocumentedMatlab.com
 | 
Pages: 1
Prev: knn that returns the neighbors?
Next: 2kx2k image