www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/SubtractMeanFromMatrixExample.m

    %% 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)