Great function. I have one problem though; i want the user of my gui to be able to click in the figure a have drawn with SC and recieve pixel coordinates. However when I try to add a buttondownfunction by writing
set(sc_handle,'ButtonDownFcn',@get_pixel_value) i get an error;
Error using set. Invalid handle.
Does an sc-object not have the property ButtonDownFcn or what am I doing wrong?