Info
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
How to find the time a system activates, if it activates several times during one test?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Hello,
I have an actuator that activates several times during my test. So in short 100=off and 100<is on.
So my plot looks something like I have attached.
Now I want to calculate the total time (which is on x-axis)when the system is below 100. This will be the total time that my actuator was on.
Could anyone please advise me on which fiction should I use to get to my result?
Kind Regards, Mustahsan
0 comentarios
Respuestas (1)
Image Analyst
el 21 de Feb. de 2016
Try this:
totalTimeActuatorOn = sum(yourSignal < 100);
1 comentario
La pregunta está cerrada.
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!