I have two double vectors, a and b. Both have values for each time point t. I In want to run a loop where
-for each time t,
--if a >= 0.5 and the next value that is >=0.5 is in a, outa = outa + 1
--if a >= 0.5 and the next value that is >=0.5 is in b, outc = outc + 1
--if b >= 0.5 and the next value that is >=0.5 is in b, outb = outb + 1
--if b >= 0.5 and the next value that is >=0.5 is in b, outc = outc + 1
How might I be able to do this?
Aucun commentaire:
Enregistrer un commentaire