MATLAB: Select Points of a Plot in GUI

editguiMATLABplot

I have a raster plot of spike times in a GUIDE GUI. I would like to add a button to my GUI that will allow the user to click a point and select the row of the raster plot. I would like to change the color of the row selected and save the row number as a variable. I need to be able to select multiple rows at once and unselect rows.I am not sure the best way to go about this. Any help/tips is greatly appriciated… Thanks ~Dan

Best Answer

Maybe this file on FEX can be helpful http://www.mathworks.com/matlabcentral/fileexchange/13857