o.edu/~roweis/data.html</span>
  X = double(data(:,:,3))';
  h = 16; w = 16;
<span class="keyword">end</span>

<span class="keyword">if</span> 0
  <span class="comment">% use all 10 classes at once - gives hard to interpret bases</span>
  loadData(<span class="string">'mnistAll'</span>); <span class="comment">% mnist structure</span>
  <span class="comment">%train_images: [28x28x60000 uint8]  0 to 255</span>
  <span class="comment">%   test_images: [28x28x10000 uint8]</span>
  <span class="comment">%  train