I ran the following with MATLAB 2021B.
-
Get
matlabengine
installed, here is the help page. This can bit a bit difficult to manage dependending on the environment, but generally requirespip install $MATLAB_DIR/extern/engines/python
. Some other notes on how I got this installed at PNI are in this document. -
Check out the code for Tomov et al. 2020 into this directory
git clone [email protected]:tomov/chunking.git
cd chunking
git checkout 2ba7fa618a15177c6e29110aa9b7ae168339191b
cd ..
-
Download boost 1.64.0 from here, unzipping into
chunking/include
. -
Compiling the
sample_c.cpp
into a.mex
cd chunking
mex sample_c.cpp printmex.cpp -Iinclude/boost_1_64_0/
cd ..