title: Cannot run Mex file
body: <p>In <a href="http://ivrl.epfl.ch/research/superpixels" rel="nofollow">this link</a> there is MATLAB code with a mex file for an SLIC algorithm implementation. </p>
  
  <p>I built it in MATLAB by writing <code>mex slicmex.c</code>. </p>
  
  <p>I then ran <code>slicmex</code> but received this error: </p>
  
  <pre><code>Matlab has encountered an internal error and needs to be closed. 
  </code></pre>