Main Content

matlab.io.fits.getConstantValue

Get numeric value of named constant

Syntax

N = matlab.io.fits.getConstantValue(name)

Description

N = matlab.io.fits.getConstantValue(name) returns the numeric value corresponding to the named CFITSIO constant. Specify name as a string scalar or character vector.

Examples

collapse all

Get the value of the BYTE_IMG constant.

import matlab.io.*
N = fits.getConstantValue("BYTE_IMG")
N = 
8

Extended Capabilities

expand all

Version History

expand all