y dimension whose size does not equal 1. Dimensions of |A| must match the 
% dimensions of |weights|. 
% 
% * If |A| is a vector, then |wmean(A,weights)| returns the weighted mean of the elements. 
% * If |A| is a matrix, then |wmean(A,weights)| returns a row vector containing the weighted 
% mean of each column.
% * If |A| is a multidimensional array, then |wmean(A,weights)| operates along the first 
% array dimension whose size does not equal 1, treating the elements as vectors.
% This dimension becomes 1