matlab.io.fits.getNumRows
Get number of rows in table
Syntax
nrows = getNumRows(fptr)
Description
nrows = getNumRows(fptr)
gets the number
of rows in the current FITS table. This function corresponds to the fits_get_num_rowsll
(ffgnrwll)
function in the CFITSIO library C API.
Examples
import matlab.io.* fptr = fits.openFile('tst0012.fits'); fits.movAbsHDU(fptr,2); ncols = fits.getNumCols(fptr); nrows = fits.getNumRows(fptr); fits.closeFile(fptr);