Zeros(data)
[data, ind] = trimZeros(data)
</pre>

<h2>Description</h2>

<p><code>trimZeros</code> reduces the size of a matrix to create a tight bounding box around the data by removing zeros. For example, in 2D, if the input data is given by</p>

<pre class="codeinput">
    0 0 0 0 0 0
    0 0 0 3 0 0
    0 0 1 3 4 0
    0 0 1 3 4 0
    0 0 1 3 0 0
    0 0 0 0 0 0
</pre>

<p><code>trimZeros</code> will return</p>

<pre class="codeinput">
    0 3 0
    1 3 4
    1 3 4
    1 3 0
</pre>

<h2>Inputs</h2>

<tab