MATLAB: How to retrieve data entered in an edit box

guimatlab functionmatlab gui

I have an edit box in my GUI. User inputs a number into the editbox and then pushes a pushbutton. when the pushbutton is pressed an external function is called. for the external function i need the number entered in the editbox. How can i used 'handles' to retrieve the data input in the edit box?

Best Answer

s=str2double(get(handles.editboxname,'string'))
% editboxname is the tag of your edit box.
Related Question