%% Subtract Mean from Matrix
% Create a matrix, A. Scale the elements in each column by subtracting the mean.

A = [1 9 3; 2 7 8]

%

A - mean(A)

% Copyright 2012 The MathWorks, Inc.