Mat_GetLibraryVersion man page
Mat_GetLibraryVersion — Get the version of the matio library
Mat_GetLibraryVersion(int *major, int *minor, int *release);
The Mat_GetLibraryVersion() function returns the major, minor, and release version numbers of the library. These can be used to check that the version specified in the header by MATIO_MAJOR_VERSION, MATIO_MINOR_VERSION, and MATIO_RELEASE_LEVEL.