Category: FORTRAN

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