title: Matlab mex options not being updated
body: <p>I am having a number of problems with compiling files using mex on matlab r2011a on Mac OS 10.9.2.  I know that I need to have the compiler flag <code>-std=gnu++11</code> in order to make things work.  I have updated the mexopts.sh file (~/.matlab/r2011a/mexopts.sh) so that the CXXFLAGS has the required flag added in.  However it doesn't seem to be working.</p>
  
  <p>If I look at the compiler configuration:</p>
  
  <pre><code>cc = mex.getcompilerconfigurations('c++')
  </code></pre>
  
  <p>The returned <code>cc.details.CompilerFlags</code> is not in any way related to the value that is in mexopts.sh.  That is probably why things are not working.</p>
  
  <p>Any ideas on how to fix this so that the compiler configuration actually reflects the mexopts.sh file?</p>