matlab.io.fits.writeKey
Add or update keyword in current HDU
Syntax
matlab.io.fits.writeKey(fptr,keyname,value)
matlab.io.fits.writeKey(fptr,keyname,value,comment)
matlab.io.fits.writeKey(fptr,keyname,value,comment,decimals)
Description
matlab.io.fits.writeKey(fptr,keyname,value) adds a new keyword and key
value to the current HDU, or updates the key value if the keyword already exists.
matlab.io.fits.writeKey(fptr,keyname,value,comment) adds or updates the
keyword with a comment.
matlab.io.fits.writeKey(fptr,keyname,value,comment,decimals) adds a new
floating-point keyword in the current HDU, or updates the key value if the keyword already
exists.
If value is longer than 68 characters, then the
LONGWARN convention is automatically employed.
Examples
Tips
This function corresponds to the
fits_write_key(ffpky) andfits_update_key(ffuky) family of functions 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.