fitsread
FITSREAD Read data from a FITS file. DATA = FITSREAD (FILENAME) reads the primary image. DATA = FITSREAD (FILENAME, 'image', IDX) reads an IMAGE extension; likewise 'asciitable', 'binarytable' and 'table'. Options: 'raw', 'PixelRegion', 'TableColumns', 'TableRows'. Image data is scaled by BSCALE/BZERO, undefined (BLANK) pixels become NaN and the result is double, unless 'raw' is given. Table extensions return a cell array with one cell per column.