MATLAB: Button to activate textboxes in GUI

textbox;

Hi: How can i make it so that when i click on a button, it gathers information in textbox(s)? I have get(hObject, 'string') for my textbox, but how do i link this to another button? Thanks

Best Answer

Use this:
exportwhatever = get(handles.("textboxname"),'string')
Put this code in the function callback. It will go to the text box and return in string format what is in the textbox.