Dataset creation

I have a 131072 set of 8x2 matrices and have their corresponding labels. How do I create a dataset with 8x2 matrices as features and associate the corresponding labels