Standard

Class

Syntax

Arguments

dim - (Optional) shall be a scalar of type integer with a value in the range from 11 to nn, where nn equals the rank of array.

mask - (Optional) shall be of type logical and either be a scalar or an array of the same shape as array.

Return value

The result is of the same type as array.

If dim is absent, a scalar with the bitwise xor of all elements in array is returned. Otherwise, an array of rank n−1n-1, where nn equals the rank of array, and a shape similar to that of array with dimension dim dropped is returned.