Simply convert each matrix into a vector of 128*19 length, and concatenate your "matrix vectors" into one huge matrix, which you can cluster as usual.
edit
One important note - kmeans is a clustering not classification algorithm. Kmeans may be used to help classification to reduce the number of descriptors, but not as a classification tool.
edit 2
trivial example:
Having 3 matrices od size 2x2
matrix 1:
[[1, 2],
[2, 3]]
matrix 2:
[[4, 5],
[5, 6]]
matrix 3:
[[7, 7],
[8, 9]]
You can convert them to one big matrix of size 3x4 ( 3x(2*2) )
[ [1,2,2,3],
[4,5,5,6],
[7,7,8,9] ]
and use your matlab clustering to cluster it. Each row is one of your original matrices, so you get exactly what you need