%% Repeat Copies of 3-D Array into Square Block Array
% Create a 2-by-2-by-2 array.

A = zeros(2,2,2);
A(:,:,1) = diag([10 20]);
A(:,:,2) = diag([55 99]);
A

%
% Create a 3-by-3 block arrangement of copies of A.

B = repmat(A,3)

% Copyright 2015 The MathWorks, Inc.