matlab.io.fits.insertBTbl
Insert binary table after current HDU
Syntax
matlab.io.fits.insertBTbl(fptr,nrows,ttype,tform,tunit,extname,pcount)
Description
matlab.io.fits.insertBTbl(fptr,nrows,ttype,tform,tunit,extname,pcount)
inserts a new binary table extension immediately following the current HDU.
Any subsequent extensions are shifted down to make room for the new
extension. If the FITS file is currently empty, then this function creates
an empty primary array before appending the table extension to the file. The
new extension becomes the current HDU. If the file has subsequent extensions
and the table contains variable-length array columns, then you must specify
pcount as the expected final size of the data
heap; otherwise, specify pcount as zero.
Specify the ttype, tform, and
tunits arguments as string arrays or cell
arrays of character vectors.
Examples
Tips
This function corresponds to the
fits_insert_btbl(ffibin) 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.