Coding

MEX functions are generally built using MATLAB’s “mex” command. However, we can also build MEX functions using open source toolchains. Cross-compilation is also possible. That is, we can build MEX functions for Windows using a Linux host. An example is given herein.