%% Read FITS File With Image Extension
% Explore the extensions of a FITS file and read data from the image extension.
% List the contents of a FITS file, including any extensions if present.

info = fitsinfo('tst0012.fits');
disp(info.Contents);

% Read data from the image extension of the FITS file.

imageData = fitsread('tst0012.fits','image');

% Copyright 2020 The MathWorks, Inc.