table of contents
| MAT_VARSETCELL(3) | Library Functions Manual | MAT_VARSETCELL(3) |
NAME¶
Mat_VarSetCell —
Sets an element of a cell array.
SYNOPSIS¶
#include
<matio.h>
matvar_t *
Mat_VarSetCell(matvar_t *matvar,
int index, matvar_t *cell);
DESCRIPTION¶
The
Mat_VarSetCell()
function assigns cell to the element at 0-relative
linear index index in the cell array
matvar.
RETURN VALUES¶
On success, the previous cell element at the requested index is returned. If there was no previous element, or if an error occurs, NULL is returned.
EXAMPLES¶
matvar_t *old_cell;
old_cell = Mat_VarSetCell(cell_array, 0, cell_element);
if ( old_cell != NULL )
Mat_VarFree(old_cell);
SEE ALSO¶
Mat_VarGetCell(3), Mat_VarGetCells(3), Mat_VarGetCellsLinear(3)
| April 23, 2026 | Nixpkgs |