%% Variance of Array
% Create a 3-D array and compute its variance.

A(:,:,1) = [1 3; 8 4];
A(:,:,2) = [3 -4; 1 2];
var(A)

% Copyright 2015 The MathWorks, Inc.