필터 지우기
필터 지우기

How to creat a corresponding callback figure when I click one value point of curves on the other figure ?

조회 수: 1 (최근 30일)
Hi all, How to creat an callback connection like this: when I click one value of curves(signals of time domin) on a figure,another figure related to the value on the former figure will pop up? I have done time-frequency analysis on series of signals of time domin.And now I have one figure which describes amplititude changes with time passes. I also have figures describe the power of diffrent frequencies band on every time point.I need to creat an callback connection : when I click one time point on the figure of time domin,the figure describe the power of diffrent frequencies on that time point will pop up.How can I do this? Code domos in detail will be very helpful and links will be also good. Thank you!
  댓글 수: 2
Geoff Hayes
Geoff Hayes 2016년 4월 4일
IP - have you created a GUI (for example, using GUIDE), or have you just created two figures with functions or scripts?
William
William 2016년 4월 5일
편집: William 2016년 4월 6일
Thanks a lot! I have created figures of time domin and frequence domin respectively using functions .And I now just need to know how to create GUI to connect them to realize:when I click one value of curves(signals of time domin) on a figure,another figure related to the value on the former figure will pop up

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

답변 (1개)

Geoff Hayes
Geoff Hayes 2016년 4월 5일
IP - I would use GUIDE to create your GUI with two axes - one for the time domain signal and the other for the power of different frequencies. See How to create a GUI with GUIDE tutorial.
As for clicking (or selecting) a point on the figure of the time domain, see http://www.mathworks.com/matlabcentral/answers/143306-how-to-move-a-plotted-line-vertically-with-mouse-in-a-gui which will get you started in terms of selecting a point on the curve using mouse action events.

카테고리

Help CenterFile Exchange에서 Specifying Target for Graphics Output에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by