<h2>Description</h2>
<p><code>numDim</code> returns the number of dimensions of a matrix <code>x</code>. Unlike the inbuilt <code><a href="matlab: doc ndims">ndims</a></code>, <code>numDim</code> returns 1 for 1D vectors, 2 for 2D arrays, etc. </p>

<h2>Inputs</h2>

<table class="body">
    <tr valign="top">
        <td width = "150"><code>x</code></td>
        <td>matrix with unknown number of dimensions</td>
    </tr>    
</table>

<h2>Outputs</h2>

<table class="body">
    <tr valign="top">
        <td w