title: Openmp with mex in Matlab on mac
body: <p>I have OS X El Capitan and Matlab R2016a and I would like to use OpenMP, which has previously worked. I have managed to install gcc-5 via homebrew and have openmp working there. I can see from this thread <a href="https://stackoverflow.com/questions/32155724/gcc-c-c-mex-matlab-r2015-mac-os-x-with-openmp-doesnt-work">GCC C/C++ MEX Matlab R2015 Mac OS X (with OpenMP) doesn&#39;t work</a> that at least in R2014a, it was possible to insert mexopts.sh manually and edit it. However, I do not have such a file to use in order to redirect the compiler flag (CC) to point at the gcc-5 compiler that works with the -fopenmp flag. </p>
  
  <p>Any suggestions? Am I going entirely the wrong way? </p>