Cfitsio Toolkit - matlab.io.fits.createImg
- : createImg(file,
bitpix, naxis)
create a new primary image or image extension.
This is the equivalent of the cfitsio fits_create_imgll function.
Inputs
file - file previously opened with openFile, openDiskFile or createFile.
bitpix - type for the data as a string in either matlab or cfitsio naming.
naxis - axis values for the image.
Outputs
None
Examples
import_fits; fd = fits.createFile("test.fits"); fits.createImg(fd,'int16',[10 20]); fits.close(fd);