Change sequence of consecutive trues to falses, in logical array
1 view (last 30 days)
I would like to find a fast procedure to change from true to false the consecutive trues in a logical array excluding only the first and the last true in the sequence.
Desired output array should be:
Hope the question is clear.