필터 지우기
필터 지우기

Mechanism for identifying row of matrix from a plot

조회 수: 1 (최근 30일)
Jason
Jason 2011년 7월 7일
Hi,
Consider the following scenario:
t = 1:5; X = randn(100,5); plot(t,X)
The resulting plot is comprised of 100 curves.
I'm trying to find an easy method for identifying the row index of X associated with a particular curve. The quantity of curves prevents me from using a legend to identify the row associated with each curve. I am willing to edit the plot. The editing tool does give you the precise values of any particular curve you select. I suppose I could use those values to go back and search through X to find the appropriate row index. I'm looking for something simpler than this.
Any suggestions?
Thank you.
Jason

답변 (1개)

Rick Rosson
Rick Rosson 2011년 7월 7일
I am not sure if this is a great idea, but it might help:
t = 1:5;
X = randn(100,5);
Y = [ (1:100)' , X ];
plot([ 0, t ], Y);

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by