Read basic structure of mat file