set(handles.uitable,'ColumnWidth',{125 125 125 125 126},'Units','normalized');
jUIScrollPane=findjobj(handles.uitable);
jtable=jUIScrollPane.getViewport.getView;
jtable.setNonContiguousCellSelection(false);
jtable.setColumnSelectionAllowed(false);
jtable.setRowSelectionAllowed(true);
jtable = handle(jtable, 'CallbackProperties');
set(jtable, 'MousePressedCallback',{@MyCellSelectionCallback,gcf});
function MyCellSelectionCallback(hObject, eventdata, currFig)
handles=guidata(currFig);
rows=hObject.getSelectedRows+1;
Speed=table2array(handles.results.Value{rows,1}(:,3))';
idx1=Speed<=10;
idx2=Speed<=20 & Speed>10;
idx3=Speed<=30 & Speed>20;
idx4=Speed>30;
c(idx1)=.1;
c(idx2)=.3;
c(idx3)=.5;
c(idx4)=.7;
cla(handles.PLOT);
set(handles.PLOT,'xtick',[]);
set(handles.PLOT,'ytick',[]);
axes(handles.PLOT)
hold on
NewPlot=color_line(LATITUDE,LONGITUDE,c);
handles.Rows=rows;
guidata(currFig);