Hi everyone, i have two axes, axes1 and axes2. axes1 contains an image, and axes2 is empty. I want the axes1 image to get copied on axes2, when i click axes1 image body. I tried the following:
set(handles.axes1,'ButtonDownFcn',{@copyImg,img});function copyImg(img) axes(handles.axes2); imshow(img);end
But no response when I click the image. What am I doing wrong ? Any help would be appreciated. Thanks in advance !
Best Answer