function pushbutton2_Callback(hObject, eventdata, handles)
[UElocation] = textread('observe/mdUELocationforGUI2.txt');
InputUEID = get(handles.edit1,'String');
InputUEID2 = str2double(InputUEID);
InputUEID3 = InputUEID2+1;
ax = handles.axes1;
delete(findobj(ax.Children, 'flat', 'type','text'));
c = string(InputUEID);
x3 = text(ax, UElocation(InputUEID3,2), UElocation(InputUEID3,3), c,'FontSize',16);
axis(ax, [0 120 0 120])
Best Answer