필터 지우기
필터 지우기

how to plot data associated with a certain value?

조회 수: 4 (최근 30일)
boutros baqain
boutros baqain 2020년 5월 3일
댓글: KSSV 2020년 5월 3일
Hey guys i have an observation file for a Navigation data and i have different PRN numbers that i need to plot. for example i have PRN (6,7,2,5,3,6,1,10,29), but the data is logged every second and the columns assosiated with the PRNs is not uniformed or sorted. my question is how can i group all the data lets say for PRN 6 and plot data only assoisated with PRN 6? my matrix is 2209 x 25
thank you
  댓글 수: 2
KSSV
KSSV 2020년 5월 3일
What is size of PRN?
boutros baqain
boutros baqain 2020년 5월 3일
so the matrix is 2209 x 25 the PRN is in the second column. so PRN 6 have 100 rows but they are scattered in coulmn 2. so i want to collect the data that is assosiated with "6" and plot it.
Thank you Very much!

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

채택된 답변

KSSV
KSSV 2020년 5월 3일
If A is 2209X25 matrix with PRN as second column.
PRN = A(:,2) ; % Pick second column
idx = PRN==6 ; %Get indices of 6 in PRN
iwant = A(idx,:)
  댓글 수: 2
boutros baqain
boutros baqain 2020년 5월 3일
thank you very much!
KSSV
KSSV 2020년 5월 3일
Thanks is accepting the answer.....:)

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

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by