using if condition and count hours

I want to count number of hours for condition if (PPD<6 and fOcc=1) then count the number of hours and put them in tables ...how can i make these in matlab?

2 comentarios

Geoff Hayes
Geoff Hayes el 17 de Jul. de 2021
sherif - you may need to provide more details. What is the data that you are looping over? What data do you want to put into tables?
Peter Perkins
Peter Perkins el 27 de Jul. de 2021
Generally speaking, you would have your data in a table, create logical vectors to find PPD<6 and fOcc=1, and those together, and look for runs of trues. With no more information to go on, hard to say more.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Productos

Versión

R2016b

Preguntada:

el 17 de Jul. de 2021

Comentada:

el 27 de Jul. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by