 row order, not column!</span>
  <span class="comment">%http://www-stat.stanford.edu/~tibs/ElemStatLearn/data.html</span>
  h  = 16; w = 16;
  [n d] = size(X)
  X = reshape(X, [n h w]);
  X = permute(X, [3 2 1]); <span class="comment">% 16 x 16 x 658</span>
  X = reshape(X, [h*w n])';
<span class="keyword">end</span>

<span class="keyword">if</span> 0
  X = loadData(<span class="string">'uspsAll'</span>); <span class="comment">% data: [256x1100x10 uint8]</span>
  <span class="comment">% http://www.cs.toront