Main Content

matlab.io.fits.closeFile

Close FITS file

Syntax

matlab.io.fits.closeFile(fptr)

Description

matlab.io.fits.closeFile(fptr) closes an open FITS file.

Examples

collapse all

import matlab.io.*
fptr = fits.openFile("tst0012.fits","READONLY");
fits.closeFile(fptr)

Tips

  • This function corresponds to the fits_close_file (ffclos) 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.

Extended Capabilities

expand all

Version History

expand all