matlab.io.fits.getColName
Get table column name
Syntax
[colnums,colnames] = matlab.io.fits.getColName(fptr,templt,casesen)
Description
[colnums,colnames] = matlab.io.fits.getColName(fptr,templt,casesen)
gets the numbers and names of the table columns whose names match the specified template.
By default, the column-name match is case insensitive. If you specify the
casesen argument as true, then the column-name
match is case sensitive.
Specify the column-name template templt as a string scalar or
character vector in one of these three ways:
The exact name of the column for which to search.
The number of the column for which to search. (The first column has number 1.)
A string for which to search containing one or more of these wildcard characters:
*— Matches any sequence of zero or more characters?— Matches any single character#— Matches any sequence of decimal digits (0–9)
Examples
Tips
This function corresponds to the
fits_get_colname(ffgcnn) 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.