Le 08/11/2018 à 20:24, Heinz Nabielek a écrit :
Great. Thanks. Should have thought of it myself...

Still: is there a vector way?

Didn't you read Guylaine's answer?
She proposes a tricky algorithm. Unfortunately, it cannot be used for very long Z input, due to memory considerations.
I am afraid that there is no other better "vectorized" solution.

This is why a builtin function like filter() -- that aims to do what you want -- is required.

BR

_______________________________________________
users mailing list
[email protected]
http://lists.scilab.org/mailman/listinfo/users

Reply via email to