This program is an example of using MATLAB generated lib/dll in a C++ environment.
Please watch the demo video: https://youtu.be/R8kBlu9kYDE
.dll, .lib, .h files are generated from a MATLAB function avgFunc.m.
mcc -W 'cpplib:avgFuncLib,all' -T link:lib avgFunc.m
main.cpp is the source c++ code for this demonstration. It reads a data file (mydata.txt) that has five columns of numeric data, and the shared library will calculate the mean of each line of the data file.