matlab.io.fits.readCol
Read rows of ASCII or binary table column
Syntax
[coldata,nullval] = matlab.io.fits.readCol(fptr,colnum)
[coldata,nullval] = matlab.io.fits.readCol(fptr,colnum,firstrow,numrows)
Description
[coldata,nullval] = matlab.io.fits.readCol(fptr,colnum) reads an
entire column from an ASCII or binary table column. The nullval
output argument is a logical array specifying whether the corresponding element of
coldata is undefined. The nullval and
coldata arguments are the same size.
[coldata,nullval] = matlab.io.fits.readCol(fptr,colnum,firstrow,numrows)
reads a subsection of rows from an ASCII or binary table column.
The MATLAB® data type returned by this function corresponds to the data type returned
by the matlab.io.fits.getEqColType
function.
Examples
Tips
This function corresponds to the
fits_read_col(ffgcv) 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.