The following Matlab project contains the source code and Matlab examples used for landsat mss tm etm+ metadata (.mtl) parser.
MTL parser for LANDSAT datasets (MSS, TM, ETM+)
Written in Nov 2012 by Evan Miles, Scott Polar Research Institute, University of Cambridge
Extended from ETM+ MTL parser written by Seongsu Jeong, Geomatics and Remote Sensing Laboratory (GRSLAB), Yonsei University
Reads the information from MTL text file, which is provided with LANDSAT data.