Tagged: MEX

Matlab R2014a Fortran MEX on Ubuntu 14.04

Test: 0) in terminal: cp /usr/local/MATLAB/R2014a/extern/examples/refbook/* /tmp/ 1) in matlab: mex -setup FORTRAN 2) in matlab: >> mex /tmp/timestwo.F Building with ‘gfortran’. MEX completed successfully 3) in matlab: timestwo(3) ans = 6.0

Matlab R2013b C++ MEX on Ubuntu 14.04

Ubuntu 14.04 comes with GCC 4.8, but Matlab R2013b wants GCC 4.8. The error you will get includes. Warning: You are using gcc version ’4.8.2′. The version of gcc is not supported. Note that Matlab R2014a uses a new system for MEX configuration. You should not use this process for R2014a and newer. For Matlab […]

Matlab R2013a: C++ MEX on Ubuntu 14.04 64-bit

Ubuntu 14.04 comes with GCC 4.8, but Matlab R2013a gives warnings about needing GCC 4.4 if using MEX features. (1) Packages to install (synaptic or apt-get) gcc-4.4 g++-4.4 (2) in Matlab, type mex -setup and press 1 to copy the mexopts.sh to your ~/.matlab/R2013a/mexopts.sh (3) sudo chmod 644 ~/.matlab/R2013a/mexopts.sh (allows you to edit this file) […]