lab.mat function

Convert vector of XY labels to label matrix