MATLAB: Edittext as input, toggle button to proceed

edit texttoggle button

I have an edittext button which will be the user input and want to use a toggle button to proceed to the next toggle button for output. How can I do this?

Best Answer

function toggle1_Callback(hObject, eventdata, handles)
input_text = get(handles.editbox1, 'String');
set(handles.toggle2, 'String', input_text);