www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/SpecifyNormalizationVectorExample.m
%% Specify Standard Deviation Weights % Create a matrix and compute the standard deviation of each column according to a weight vector |w|. % Copyright 2015 The MathWorks, Inc. A = [1 5; 3 7; -9 2]; w = [1 1 0.5]; S = std(A,w)