function[x]=var_vec(V)

% PURPOSE: collects unique elements of a Variance matrix into a vector, row by row
%
%
% SEE ALSO: vec_chol, nonzeros, chol_vec,vec_var
%
% Written by:
% Klaus Moeltner
% Department of Resource Economics
% University of Nevada, Reno
% moeltner@cabnr.unr.edu


l = length(V);

c = l*(l+1)/2; % number of unique elements in V
x=[];

j=1;
 while j< l+1;
    int = V(j,1:j)';
    x=[x;int];
    j=j+1;
  end

  
 
  




