matlab.io.fits.insertImg
Insert FITS image after current HDU
Syntax
matlab.io.fits.insertImg(fptr,bitpix,naxes)
Description
matlab.io.fits.insertImg(fptr,bitpix,naxes)
inserts a new image extension immediately following the current HDU. Any subsequent extensions
in the file are shifted down to make room for the new extension. If the FITS file is currently
empty, then this function inserts the image as the primary array. The new extension becomes
the current HDU.
Examples
Tips
This function corresponds to the
fits_insert_imgll(ffiimgll) function in the CFITSIO library C API.To use this function, you must be familiar with the CFITSIO C interface. You can access the CFITSIO documentation at the CFITSIO website.