I have the code below to extract the string from my Edit UIControl in GUIDE:
% --- Executes on key press with focus on edit1
function edit1_KeyPressFcn(hObject, eventdata, handles)get(hObject, 'string')
However, it always returns an empty character array. Why is this?
The only way I can get the hObject.string property to return anything in the callback is if I place a breakpoint in it.
Best Answer