Figured out best I/O format for MATLAB