Cfitsio Toolkit - matlab.io.fits.createFile
- :
file
=createFile(filename)
Attempt to create a file of the given input name.
If the filename starts with ! and the file exists, it will create a new file, otherwise, if the file exists, the create will fail.
This is the equivalent of the cfitsio fits_create_file function.
Inputs
filename - filename to open.
Outputs
file - opened file identifier.
Examples
import_fits; fd = fits.createFile("myfitsfile.fits"); fits.createImg(fd, 'uint16', [100 100]); fits.closeFile(fd);