What is matfile
matfile is a set of utilities for interacting with Matlab files (see the document matfile_format, which explains the structure of such files), that gives you the possibility to export C++-data in form of dense or sparse matrices to Matlab or other programs and to import such data into your C++ program.