The output for both types of mat file is now the same, thanks to some code I pulled off stack overflow. See the docstrings of the new functions for details.