필터 지우기
필터 지우기

Select Points of a Plot in GUI

조회 수: 4 (최근 30일)
Daniel
Daniel 2011년 1월 26일
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

채택된 답변

Paulo Silva
Paulo Silva 2011년 1월 28일
Maybe this file on FEX can be helpful http://www.mathworks.com/matlabcentral/fileexchange/13857

추가 답변 (2개)

Daniel
Daniel 2011년 1월 28일
Any ideas? Should I be looking at ActiveX? I've tried the Edit Plot feature but it selects columns and not rows. I remembered seeing a tutorial some time back that changed the icons on the graph if you hoovered/clicked on them but I can't seem to find it. Any help would be great! Thanks ~Dan

Daniel
Daniel 2011년 1월 29일
This program sounds like what I was loooking for... however, I was really hoping to write the code myself. I am still learning MATLAB and see this a valueable learning oppertunity. Thank you for your help!
  댓글 수: 2
Paulo Silva
Paulo Silva 2011년 1월 29일
Just play (comment lines, change values, etc) with the code of that file until your understand what everything does, it's often the best way to learn.
Daniel
Daniel 2011년 2월 2일
Thanks. I'm working on trying to understand the code. The way I was trying to do it was much different. I'm having a hard time trying to get it to work with my GUI...

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Graphics Objects에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by