|
Hello,
I am trying to create a uicontrol edit text box, and get the user
input string to be read as a value: The user will actually put in a
number.
*************************************
function edit2_Callback(hObject, eventdata, handles)
handles.deltaSPL=get(handles.edit2,'String')
guidata(hObject, handles)
*************************************
This seems to give handles.delta as a string, thus reads its ASCII
value when I try to use it in calculations.
The 'int2str' function converts a number to a string, is there a
function that does the reverse?
Thanks heaps,
Justin.
|