Wednesday, March 3, 2010

conflict command in linux: matlab mex with mex from pdflatex

In the Ubuntu, two commands have same name. The way to solve this problem is to use command name with whole directory, e.g, /opt/matlab/bin/mex. You can use this whole name instead of short name "mex" in the Makefile.

1 comment:

zwt said...

Thanks for the solution.

Is there a way to override the mex command so it always points to the matlab mex?

Thanks in advance.