Extracting the data after the threshold point
8 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Jennifer Arputharaj
el 13 de Mayo de 2018
Comentada: Star Strider
el 13 de Mayo de 2018
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 comentarios
Image Analyst
el 13 de Mayo de 2018
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?
Respuesta aceptada
Star Strider
el 13 de Mayo de 2018
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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Predict Remaining Useful Life (RUL) en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!