title: Beginner Matrix Access in MATLAB
body: <p>Now first off, I am not even sure this is called a matrix, and I am new to MATLAB. But let's say I have a "matrix" that looks like this:</p>
  
  <pre><code>for n=1:10
  ...
  someImage = mat(:,:,n) %The "matrix"
  ...
  end
  </code></pre>
  
  <p>where <code>n</code> could be the frames in a video, for example, and the first 2 <code>':'</code> are the row and column data for the 2D image (the frame).</p>
  
  <p>If I only wanted the first <code>':'</code> of data (the row? column? element?), how would I access only that?</p>
  
  <p>Intuitively, I think something like:</p>
  
  <pre><code>row1 = mat(:,0,0)
  row2 = mat(0,:,0)
  row3 = mat(0,0,:)
  </code></pre>
  
  <p>but that doesn't seem to be working.</p>
  
  <p>P.S. I know that these aren't really rows, the terminology for all this would also be greatly appreciated</p>
  
  <p>Also, it may not have anything to do with this, but I am using a MATLAB GUI as well, and the "matrix" is stored like this:</p>
  
  <pre><code>handles.mat(:,:,n)
  </code></pre>
  
  <p>I don't think it has anything to do with my actual question, but it might so I will put it here</p>
  
  <p>-Thanks!</p>