C++ mex file integration test_arrayProduct.m compiles and runs C++ function arrayProduct. The interface is in arrayProduct.cpp The code itself is in array_product.cpp run_armaMex_demo.m runs armaMex_demo.m