MATLAB: How to import and read the contentes of an .idx3-ubyte file

idx3idx3-ubyteimport

So this is the first time I've seen this ".idx3-ubyte" extension and I don't know how to read the contents of it. You can download it here. I think the matrix should have a size of something like samples-by-794 (28×28 pixels + 10 classes).
Related Question