function [ outVec ] = mapMat2Vec( inMat )
[n,p] = size(inMat);
outVec = zeros(n, 1);
for i = 1: n
    [row, col] = find(inMat(i,:) == 1);
    outVec(i) = col;
end
end

