matlab.io.fits.getHDUtype
Get type of current HDU in FITS file
Syntax
htype = matlab.io.fits.getHDUtype(fptr)
Description
htype = matlab.io.fits.getHDUtype(fptr) returns the type of the
current HDU in the FITS file. The function returns htype as
'IMAGE_HDU', 'ASCII_TBL', or
'BINARY_TBL'.
Examples
Tips
This function corresponds to the
fits_get_hdu_type(ffghdt) 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.