Without using GUIDE how would I get the value of an edit uicontrol after pressing a pushbutton?
Example:
fig = figure;
input = uicontrol(fig, 'Style', 'edit', 'Tag', 'input');
btn = uicontrol(fig, 'Style', 'pushbutton', 'Callback', @obj.test);
Then in my class
methods
function testing(src, event, handles)
msgbox(get(handles.input, 'string'));
end
end