mat.c File Reference


Functions

int Mat_CalcSingleSubscript (int rank, int *dims, int *subs)
 Calculate a single subscript from a set of subscript values.
int * Mat_CalcSubscripts (int rank, int *dims, int index)
 Calculate a set of subscript values from a single(linear) subscript.
int Mat_Close (mat_t *mat)
 Closes an open Matlab MAT file.
mat_tMat_Create (const char *matname, const char *hdr_str)
 Creates a new Matlab MAT file.
mat_tMat_Open (const char *matname, int mode)
 Opens an existing Matlab MAT file.
int Mat_Rewind (mat_t *mat)
 Rewinds a Matlab MAT file to the first variable.
size_t Mat_SizeOfClass (int class_type)
 Returns the size of a Matlab Class.
int Mat_VarAddStructField (matvar_t *matvar, matvar_t **fields)
 Adds a field to a structure.
matvar_tMat_VarCalloc (void)
 Allocates memory for a new matvar_t and initializes all the fields.
matvar_tMat_VarCreate (const char *name, int class_type, int data_type, int rank, int *dims, void *data, int opt)
 Creates a MAT Variable with the given name and (optionally) data.
int Mat_VarDelete (mat_t *mat, char *name)
 Deletes a variable from a file.
matvar_tMat_VarDuplicate (const matvar_t *in, int opt)
 Duplicates a matvar_t structure.
void Mat_VarFree (matvar_t *matvar)
 Frees all the allocated memory associated with the structure.
void Mat_VarFree2 (matvar_t *matvar)
matvar_tMat_VarGetCell (matvar_t *matvar, int index)
 Returns a pointer to the Cell array at a specific index.
matvar_t ** Mat_VarGetCells (matvar_t *matvar, int *start, int *stride, int *edge)
 Indexes a cell array.
matvar_t ** Mat_VarGetCellsLinear (matvar_t *matvar, int start, int stride, int edge)
 Indexes a cell array.
int Mat_VarGetNumberOfFields (matvar_t *matvar)
 Returns the number of fields in a structure variable.
size_t Mat_VarGetSize (matvar_t *matvar)
 Calculates the size of a matlab variable in bytes.
matvar_tMat_VarGetStructField (matvar_t *matvar, void *name_or_index, int opt, int index)
 Finds a field of a structure.
matvar_tMat_VarGetStructs (matvar_t *matvar, int *start, int *stride, int *edge, int copy_fields)
 Indexes a structure.
matvar_tMat_VarGetStructsLinear (matvar_t *matvar, int start, int stride, int edge, int copy_fields)
 Indexes a structure.
void Mat_VarPrint (matvar_t *matvar, int printdata)
 Prints the variable information.
matvar_tMat_VarRead (mat_t *mat, char *name)
 Reads the variable with the given name from a MAT file.
int Mat_VarReadData (mat_t *mat, matvar_t *matvar, void *data, int *start, int *stride, int *edge)
 Reads MAT variable data from a file.
int Mat_VarReadDataAll (mat_t *mat, matvar_t *matvar)
 Reads all the data for a matlab variable.
int Mat_VarReadDataLinear (mat_t *mat, matvar_t *matvar, void *data, int start, int stride, int edge)
 Reads MAT variable data from a file.
matvar_tMat_VarReadInfo (mat_t *mat, char *name)
 Reads the information of a variable with the given name from a MAT file.
matvar_tMat_VarReadNext (mat_t *mat)
 Reads the next variable in a MAT file.
matvar_tMat_VarReadNextInfo (mat_t *mat)
 Reads the information of the next variable in a MAT file.
int Mat_VarWrite (mat_t *mat, matvar_t *matvar, int compress)
 Writes the given MAT variable to a MAT file.
int Mat_VarWriteData (mat_t *mat, matvar_t *matvar, void *data, int *start, int *stride, int *edge)
 Writes the given data to the MAT variable.
int Mat_VarWriteInfo (mat_t *mat, matvar_t *matvar)
 Writes the given MAT variable to a MAT file.

Detailed Description

Matlab MAT version 5 file functions

Generated on Tue May 26 18:14:41 2009 for LIBMATIO API by  doxygen 1.5.7.1