MATLAB: Can I use Matfile LIbrary to access MAT files from C program without using mex

matfile libraryMATLAB

I want to use some data that is in several mat files in a C program. I want the C program to be independent of MATLAB, ie I don't want to compile through the mex utility. It is not clear from the documentation whether the matfile library can be used this way.

Best Answer

Yes, you can write standalone applications using the MAT-file library than can run independent of MATLAB. You just need to copy over the required DLLs. See Deploying MAT-File Applications.