%% Test Array Page
% Create a 3-D array and test each "page" of data (rows and columns) for nonzero elements.

A(:,:,1) = [2 4; 2 1];
A(:,:,2) = [6 2; 3 3];
A(:,:,3) = [4 4; 7 4];
B1 = all(A,[1 2])

% To test over all dimensions of an array, you can either specify each dimension in the vector dimension argument, or use the 'all' option.

B2 = all(A,[1 2 3])
Ball = all(A,'all')

% Copyright 2018 The MathWorks, Inc.