imline function in GUI

Hi,
I have a GUI application which includes two figures to display the experiment data. One figure is the amplitude, and another one is the phase. Both figures have the same x-axis (distance), but different y-axis. In both figures, some data points are bad, and I want to remove those points from the figures. I plan to draw one vertical line at the shorter distance and another vertical line at the longer distance in any figure, and then display the data points in between these two lines.
I searched matlab command, and imline seems a good candidate. My question is how to link the lines in both figure? Can I move the selected line in one figure, and the corresponding line also move in another figure?
Thank you!

답변 (1개)

Jan
Jan 2013년 8월 1일

0 개 추천

You could use plotyy to draw both lines in one diagram. Then you do not care about linking the properties.

댓글 수: 2

CC
CC 2013년 8월 1일
Thank you, Jan. I tried plotyy, it doesn't look good because too many points mixed together. Do you have other suggestions?
CC
CC 2013년 8월 1일
I tried copyobj function, but get the error "Conversion to double from imline is not possible." Is there any way around this problem?

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

카테고리

도움말 센터File Exchange에서 Environment and Settings에 대해 자세히 알아보기

태그

질문:

CC
2013년 7월 31일

Community Treasure Hunt

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

Start Hunting!

Translated by