Scroll to navigation

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 () 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 () 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

Mat_VarGetCell(3), Mat_VarGetCells(3)

April 23, 2026 Nixpkgs