Cfitsio Toolkit - matlab.io.fits.fileMode


mode = fileMode(file)

Return the file mode of the opened FITS file.

This is the equivalent of the fits_file_mode function.

Inputs

file - opened FITS file.

Outputs

mode - The mode will return as a string ’READWRITE’ or ’READONLY’