How can I extract a submatrix from matrix in python?
I have a .mat file that when uploaded to python has a nested array that is something similar to the following but with 12,000 items each:
letters= array([[(array([[a],[a],[a]]), array([[b],[b],[b]]),array([[c],[c],[c]])]])
I want to separate each submatrix into a matrix, that will be something like this:
letter_a= array([[a],[a],[a]])
letter_b= array([[b],[b],[b]])
letter_c= array([[c],[c],[c]])
I want this separation because I want to work with each individual array
type(letter)
Thanks!