I see everyone talking about the mathworks provided MAT-File library and api, but I can't seem to find a download link anywhere.... I admit this isn't coding related but it seemed the most appropriate place to ask.
matroot\extern\include\mat.h, its in there, "matroot" is your matlab installation directory