function edit1_Callback(hObject, eventdata, handles)% hObject handle to edit1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hints: get(hObject,'String') returns contents of edit1 as text
% str2double(get(hObject,'String')) returns contents of edit1 as a double
a = sprintf('Enter the value');set(handles.text1,'string',a)x = get(handles.edit1,'string')a = sprintf('How many nodes?');set(handles.text1,'string',a)x = get(handles.edit1,'string')
Assalam-o-Alaikum! Actually, I want to enter many inputs but I've just one edit text box in my UI. I am doing all this using Matlab.
Look at the output:
The first message disappears quickly and the second one displayed, same is the case for the inputs.
Best Answer