Picking data from graph?

조회 수: 4 (최근 30일)
Nurfaiz Fathurrahman
Nurfaiz Fathurrahman 2021년 11월 22일
댓글: Nurfaiz Fathurrahman 2021년 11월 23일
I have a sample signal below, I just want to retrieve the data in the red box for the next step of processing, how do I do it?
  댓글 수: 4
Walter Roberson
Walter Roberson 2021년 11월 22일
How should the program know where to start extracting? How should the program know where to stop extracting ?
Is the time range fixed? Have the times been input by the user? Does the program need to detect the first minima and extract everything to the sixth minima ?
Nurfaiz Fathurrahman
Nurfaiz Fathurrahman 2021년 11월 22일
is it possible to retrieve data by picking in the graph? or use another method so that it can determine the start and end?
time range is fixed, signal is input using exsisting data

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

채택된 답변

Bjorn Gustavsson
Bjorn Gustavsson 2021년 11월 22일
If you have the signal S, the corresponding sample-times t and the start and stop-times t1 and t2 you can select the signal in the intervall:
S1to2 = S(t1<t&t<=t2);
If you want to select the time-interval from the graph, have a look at the help and documentation of ginput, it is a function that allows you to select points in graphs. You could use that to select 2 points (you will/can get bot the x and y-values of selected points) to give you t1 and t2.
HTH
  댓글 수: 1
Nurfaiz Fathurrahman
Nurfaiz Fathurrahman 2021년 11월 23일
Excellent, i tried ginput and got what i wanted, thanks a lot
Sorry late reply

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

추가 답변 (0개)

카테고리

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

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by