-matlab">https://stackoverflow.com/questions/48458660/library-not-loaded-loader-path-libmex-dylib-in-matlab</a></p>
<p>First, find out your matlab version:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">find</span> <span class="o">/</span><span class="n">Applications</span><span class="o">/</span> <span class="o">-</span><span class="n">maxdepth</span> <span class="mi">1</span> <span class="o">-</span><span class="nb">type</span> <span class="n">d</sp