If I run mex in terminal I get:
This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2018) (preloaded format=mex) restricted \write18 enabled.**
when I type which mex I get
/usr/local/texlive/2018/bin/x86_64-linux/mex
MATLABmexmex compiler
This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2018) (preloaded format=mex) restricted \write18 enabled.**
/usr/local/texlive/2018/bin/x86_64-linux/mex
Best Answer