From: Edward Nieh on 27 Nov 2009 19:28 I'm having a problem with handles inside my WindowButtonDownFcn function. I have no idea why it won't work. I've been trying to set global variables and handles in my WindowButtonDownFcn, but nothing works. I'm new to this website, I hope this helps. Thanks! % -------------------------------------------------------------------- function Start_Selection_Callback(hObject, eventdata, handles) % hObject handle to Start_Selection (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) set(gcf,'Pointer','fullcrosshair'); set(gcf,'WindowButtonDownFcn',@button_down1); function button_down1(hObject, eventdata, handles) [pointspicked] = select3d % select3d returns coordinates set(handles.C1,'String',num2str(pointspicked(1))); assignin('base','pointspicked',pointspicked);
|
Pages: 1 Prev: Problem with sostools Next: rgb2gray in embedded matlab editor |