%% Specify Variance Weight Vector
% Create a matrix and compute its variance according to a weight vector w.

A = [5 -4 6; 2 3 9; -1 1 2];
w = [0.5 0.25 0.25];
var(A,w)

% Copyright 2015 The MathWorks, Inc.