This function m-file reads the information from MTL text file, which contains metadata information for the dataset. MTL file is usually accompanied with the LANDSAT 7 ETM+ image dataset distributed from USGS.
Hope this code helps automating the process for a number of imagery.
Seongsu Jeong (2019). LANDSAT ETM+ MTL parser (https://www.mathworks.com/matlabcentral/fileexchange/30670-landsat-etm-mtl-parser), MATLAB Central File Exchange. Retrieved .