2cell2( X, parts ) </strong></div>

<h2><a name="_description"></a>DESCRIPTION <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
<div class="fragment"><pre class="comment"> Break matrix up into a cell array of same sized matrices.

 Useful wrapper for matlab function mat2cell.  Instead of specifying
 locations along each dimension at which to split the matrix, this
 function takes the number of parts along each dimension to break X into.
 That is if X is d1xd2x...xdk and parts=[p1 p2