title: matlab tall arrays with for loop inplementation
body: <p>I'm working with binary data in large files (30GB+).
  I have implemented fileDatastore with a custom read function.</p>
  
  <pre><code>fds = fileDatastore(location,'ReadFcn',@readFile);
  </code></pre>
  
  <p>The readFile function reads in the binary data into an array a byte at a time.
  I then create a tall array from the fileDatastore.</p>
  
  <pre><code>data = tall(fds);
  </code></pre>
  
  <p>This all seems to be working fine. Now I would like to search through the tall array for a byte pattern (ex. 25 followed by 30).  Something like...</p>
  
  <pre><code>for i=1:size(data)
      if data(i) == 25 &amp;&amp; data(i+1) == 30
          disp('do something')
      end
  end
  </code></pre>
  
  <p>This does not seem to be possible.  I end up with a 'conversion to logical from tall is not possible' error.  How can I solve this problem?</p>