Cfitsio Toolkit - matlab.io.fits.closeFile


: closeFile(file)

Close the opened fits file

This is the equivalent of the fits_close_file function.

Inputs

file - opened file returned from openFile or createFile.

Outputs

None

Examples

 import_fits;
 filename = file_in_loadpath("demos/tst0012.fits")

 fd = fits.openFile(filename);
 fits.closeFile(fd);