function A=stack(v,n)
%stacks a column vector n times to make a matrix of size length(v) by m
A=[];
for i=1:n
    A=[A v];
end

