From: Jos (10584) on
ImageAnalyst <imageanalyst(a)mailinator.com> wrote in message <ba93a24a-8d15-43b5-b488-77c8432809c5(a)g39g2000pri.googlegroups.com>...
> A = [ 1 5; 6 0; 12 3]
> logicalArray = ~(A > 0 & A < 10)
> rowsToKeep = sum(logicalArray, 2) == 0

Better use ANY or ALL instead of SUM

logicalarray = (A>0 & A < 10)
rowsToKeep = all(logicalarray,2)

> newA = A(rowsToKeep,:)

Jos