Paul, I think the line in the test case x(4:1:-1) = x((/1,3,2,4,5/)) should be x(4:1:-1) = x((/1,3,2,4/)) otherwise the left- and right-hand sides are not comformable (it should also be detected as with xlf). Dominique