Hello,
I have a 1D piddle [0,0,1,1,1,0,0,0,0,1,1,1,1,0,0] and would like to scan the piddle for the next interval of non-zero values given an offset: ( beg, end ) = scan( pdl, 0 ); # return beg=2, end=4 ( beg, end ) = scan( pdl, 5 ); # return beg=9, end=12 How do you do that with PDL ? Martin
_______________________________________________ Perldl mailing list [email protected] http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
