baby matrix to csv