matrix - different input data for different columns