A= *your matrix*
V = var(A);
If A is a matrix whose columns are random variables and whose rows are observations, V is a row vector containing the variances corresponding to each column.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!