mmand window:
</p>

<pre class="matlab">
mex -setup C
</pre>

<p>
If no compiler is configured, or the configured one is not installed, do the following:
</p>

<ul>
<li>Windows: Download and install the C compiler MinGW - see <a href="https://www.mathworks.com/support/requirements/supported-compilers.html">list of compatible compilers</a> for supported versions.
<li>Mac: The C compiler Clang is already pre-installed on recent versions of macOS. If not, download and install <a href="https://apps.apple.com/us