title: Getting numerical value from edit box in MATLAB
body: <p>I've designed a GUI with <code>resize</code> option in it. Where user is allowed to enter image size in 2 provided edit boxes. </p>
  
  <pre><code>function x_Callback(hObject, eventdata, handles)
  % hObject    handle to x (see GCBO)
  % eventdata  reserved - to be defined in a future version of MATLAB
  % handles    structure with handles and user data (see GUIDATA)
  user_entry_X = str2double(get(hObject,'string'));
  if isnan(user_entry_X)
   errordlg('You must enter a numeric value','Bad Input','modal')
   uicontrol(hObject)
  return
  end
  </code></pre>
  
  <p>above code is for <code>edit box</code> <code>X</code>. If user gives non-numerical input it results in error. But I'm not getting how to fetch entered numeric values. I've a <code>pushbutton</code> named <code>resize</code>, on pressing that after entering numbers in edit box image should get resize. 
  What should i use in my <code>resize_callback</code> function? please help me.</p>