table of contents
| MAT_VARREADDATA(3) | Library Functions Manual | MAT_VARREADDATA(3) |
NAME¶
Mat_VarReadData —
Reads a subset of numeric variable data from a MAT
file.
SYNOPSIS¶
#include
<matio.h>
int
Mat_VarReadData(mat_t *mat,
matvar_t *matvar, void *data,
const int *start, const int
*stride, const int *edge);
DESCRIPTION¶
The
Mat_VarReadData()
function reads a subset of the data for matvar from
the MAT file mat into the caller-allocated buffer
data. The variable metadata must already have been
obtained with
Mat_VarReadInfo().
The start, stride, and
edge arrays specify the per-dimension selection to
read.
This function supports numeric variables.
RETURN VALUES¶
The function returns 0 on success. Otherwise, a matio error code is returned.
SEE ALSO¶
Mat_VarRead(3), Mat_VarReadDataAll(3), Mat_VarReadDataLinear(3), Mat_VarReadInfo(3)
| April 23, 2026 | Nixpkgs |