ion"></a>DESCRIPTION <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
<div class="fragment"><pre class="comment"> Improved version of ind2sub.

 Almost the same as ind2sub, except always returns only a single output
 that contains all the index locations.  Also handles multiple linear
 indicies at the same time. See help for ind2sub for more info.

 USAGE
  sub = ind2sub2( siz, ind )

 INPUTS
  siz     - size of array into which ind is an index
  ind     - linear index (or vecto