MATLAB: Fortran mex for Matlab 2018b on Mac, OS 10.14.1 (Mojave)

MATLABmex compiler

I need to run Fortran mex scripts with Matlab 2018b. Intel Studio Parallel Studio XE 2019 does not work, and the 2018 version cannot be installed.
I downloaded the latest version of Intel Parallel Studio XE (2019), and ran "mex -setup – v FORTRAN"
mex -setup -v FORTRAN
Verbose mode is on.
… Looking for compiler 'Intel Fortran Composer XE' …
… Looking for environment variable 'IFORT_COMPILER18' …No.
… Looking for environment variable 'IFORT_COMPILER17' …No.
… Looking for environment variable 'IFORT_COMPILER16' …No.
… Looking for environment variable 'IFORT_COMPILER15' …No.
… Executing command 'which ifort' …No.
Did not find installed compiler 'Intel Fortran Composer XE'.
Error using mex
No supported compiler was found. For options, visit
Then I tried downloading and installing the 2018 realease of Intel Parallel Studio XE, but were refused by the installer with the message
Unsupported OS
Detected operating system is not supported. Supported operating systems for this release are:
  • macOS* 10.12 (Intel(R) 64), 10.13 (Intel(R) 64)

Best Answer

Gave up the intel fortran route, and managed to get my setup working with gfortran, using the presecriptions in https://www.mathworks.com/matlabcentral/answers/338303-how-to-set-up-mex-with-gfortran-on-mac#answer_285758
Thank you so much!
Related Question