Scroll to navigation

MAT_VARGETCELL(3) Library Functions Manual MAT_VARGETCELL(3)

NAME

Mat_VarGetCell — Gets an element from a cell array.

SYNOPSIS

#include <matio.h>

matvar_t *
Mat_VarGetCell(const matvar_t *matvar, int index);

DESCRIPTION

The () function returns a pointer to the cell element at 0-relative linear index index in the cell array matvar.

RETURN VALUES

On success, a pointer to the requested cell element is returned. Otherwise NULL is returned.

EXAMPLES

matvar_t *cell;

cell = Mat_VarGetCell(cell_array, 0);

SEE ALSO

Mat_VarGetCells(3), Mat_VarGetCellsLinear(3), Mat_VarSetCell(3)

April 23, 2026 Nixpkgs