Scroll to navigation

MAT_VARREADDATALINEAR(3) Library Functions Manual MAT_VARREADDATALINEAR(3)

NAME

Mat_VarReadDataLinear — Reads a linear subset of numeric variable data from a MAT file.

SYNOPSIS

#include <matio.h>

int
Mat_VarReadDataLinear(mat_t *mat, matvar_t *matvar, void *data, int start, int stride, int edge);

DESCRIPTION

The () function reads a linear 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 (). The data is selected using the 0-relative linear start index start, the linear stride, and the number of elements edge.

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_VarReadData(3), Mat_VarReadInfo(3)

April 23, 2026 Nixpkgs