MEX files (MATLAB executables) are dynamically-linked libraries, and as such are (1) platform-specific and (2) binary. These qualities challenge reproducibility because:
- You may have compiled your executable files on Windows, while Code Ocean runs Linux, and some readers might run any operating system locally.
- compiled binaries are not transparent, so readers will be unable to inspect and reuse the code.
We ask that authors include the source code for all executables and build them on Code Ocean. (For MEX in particular, this may require installing a compiler like
gcc , or the entire C++ toolchain in
build-essential, through apt-get. See Configuring your computational environment: an overview for further information.)
See the published capsule BRAS: Bundle Robust Alignment for Panoramic Stitching for a demonstration of compiling mex files on Code Ocean.
If you have any questions about compiling your source code, contact us through live chat or firstname.lastname@example.org, we will be happy to help.