%% Standard Deviation of 3-D Array
% Create a 3-D array and compute the standard deviation along the first dimension.

A(:,:,1) = [2 4; -2 1];
A(:,:,2) = [9 13; -5 7];
A(:,:,3) = [4 4; 8 -3];
S = std(A)

% Copyright 2015 The MathWorks, Inc.