From: Akiles on
Hi everyone
Im new using the GUI function in MATLAB. I'm trying to develop an application using a popup menu to perform Sobel, Roberts or Gaussian edge detection and apply it to an image. The value chosen in the popup menu will be set into a variable B, but I have this problem: I does not work. I can't set directly the value that i get from my popup menu into a variable. This is my code for the popup menu:

function selector_Callback(hObject, eventdata, handles)
% Edge detection method popup menu
A = get(handles.selector,'Value');
set(handles.B,'string',A); % set value

B = get(handles.A,'String')
I = edge(g, B, 'both');

I was trying to do so using some radio buttons but the result is the same. I hope someone can help me...
thanks