%% Multiply 3-D Arrays
% Create two 3-D arrays and multiply corresponding pages.

rng default
X = randi([1 6],2,2,3)
Y = randi([1 6],2,2,3)
Z = pagemtimes(X,Y)

% The ith page of the output Z(:,:,i) is formed by multiplying X(:,:,i)*Y(:,:,i).
% Copyright 2020 The MathWorks, Inc.