%% Singular Values of Array Pages
% Create two 6-by-6 matrices. Use the cat function to concatenate them along the third dimension into a 6-by-6-by-2 array.

A = magic(6);
B = hilb(6);
X = cat(3,A,B);

%
% Calculate the singular values of each page by calling pagesvd with one output.

S = pagesvd(X)

% Copyright 2020 The MathWorks, Inc.