Skip to content
Prev 199636 / 398506 Next

Find the first values in vector

Hi,

One way would be,

vec[ cumsum(!vec)==0 ]

HTH,

baptiste

2009/11/9 Grzes <gregorio99 at gmail.com>: