Extracting the data after the threshold point

조회 수: 7 (최근 30일)
Jennifer Arputharaj
Jennifer Arputharaj 2018년 5월 13일
댓글: Star Strider 2018년 5월 13일
Hi everybody,
I am looking for extracting series of data after a threshold.
I have set the threshold at 1.4 and looking to extract the data after(data from x axis).
X axis is number of cycle
y axis is capacity
Kindly suggest an approach or link for reference, hope my question is understandable.
  댓글 수: 2
Image Analyst
Image Analyst 2018년 5월 13일
So do you want data starting with x=118 or 120? If the threshold is 1.4, why are there are few red dots before y ever gets down to 1.4, as if you wanted to select those?
Jennifer Arputharaj
Jennifer Arputharaj 2018년 5월 13일
Hi,
I divided the training set to 0.7 (numTimeStepsTrain = floor(0.7*numel(data));) as i am working on remaining useful life.
Can I change the above code by dividing the training set from the capacity 1.4 ?

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

채택된 답변

Star Strider
Star Strider 2018년 5월 13일
If I understand correctly what you want to do, this will work:
Capacity_Thresh = Capacity(Capacity <= 1.4);
NrCycles_Thresh = Number_Of_Cycles(Capacity <= 1.4);
This will detect and save only those values where ‘Capacity’ is less than or equal to ‘Threshold’. If you want to detect the first index that ‘Capacity’ is less than or equal to ‘Threshold’, and save everything after that:
Thrsh1 = find(Capacity <= 1.4, 1);
Capacity_Thresh = Capacity(Thrsh1:end);
NrCycles_Thresh = Number_Of_Cycles(Thrsh1:end);
You may need to experiment to get the result you want.
  댓글 수: 2
Jennifer Arputharaj
Jennifer Arputharaj 2018년 5월 13일
Thank you for the reply, really appreciate it.
Star Strider
Star Strider 2018년 5월 13일
As always, my pleasure.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Predict Remaining Useful Life (RUL)에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by