matlab.io.fits.readKeyUnit
Read physical units string from keyword
Syntax
units = matlab.io.fits.readKeyUnit(fptr,keyname)
Description
units = matlab.io.fits.readKeyUnit(fptr,keyname)
returns the physical units from the specified keyword. Specify the
keyname argument as a string scalar or character vector. The function
returns units as a character vector. If no units are defined, the
function returns units as an empty character vector.
Examples
Tips
This function corresponds to the
fits_read_key_unit(ffgunt) function 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.