table of contents
| MAT_VARGETCELLSLINEAR(3) | Library Functions Manual | MAT_VARGETCELLSLINEAR(3) |
NAME¶
Mat_VarGetCellsLinear —
Gets a linear subset of elements from a cell
array.
SYNOPSIS¶
#include
<matio.h>
matvar_t **
Mat_VarGetCellsLinear(const matvar_t
*matvar, int start, int
stride, int edge);
DESCRIPTION¶
The
Mat_VarGetCellsLinear()
function returns an allocated array of pointers to cell elements selected
from the cell array matvar using a 0-relative linear
start index, stride, and number
of elements edge. The returned cell elements remain
owned by the original cell array. If copies are needed, use
Mat_VarDuplicate()
on each returned element.
RETURN VALUES¶
On success, an allocated array of cell element pointers is returned. Otherwise NULL is returned. The returned pointer array should be freed by the caller.
SEE ALSO¶
| April 23, 2026 | Nixpkgs |