title: YUV video processing in Matlab
body: <p>I am using this function I got from the internet:</p>
  
  <pre><code>&gt;&gt;[Y,U,V]=yuv_import('test.yuv',[176 144],150,0)
  </code></pre>
  
  <p>I got this from: <a href="http://www.mathworks.com/matlabcentral/fileexchange/6318" rel="nofollow">Convert YUV CIF 4:2:0 video file to image files</a></p>
  
  <p>It prints out the Y, U and V components of the yuv file test.yuv. When I typed:</p>
  
  <pre><code>&gt;&gt;Y
  </code></pre>
  
  <p>It displayed:</p>
  
  <pre><code>Y = 
  
    Columns 1 through 5
  
      [144x176 double]    [144x176 double]    [144x176 double]    [144x176 double]    [144x176 double]
  
  ............... 
  
    Columns 146 through 150
  
      [144x176 double]    [144x176 double]    [144x176 double]    [144x176 double]    [144x176 double]
  </code></pre>
  
  <p>And..</p>
  
  <pre><code>&gt;&gt;size(Y)
  </code></pre>
  
  <p>displayed:</p>
  
  <pre><code>ans =
  
       1   150
  </code></pre>
  
  <p>Doing the same for U and V components also showed the same results.</p>
  
  <p>And also..</p>
  
  <pre><code>&gt;&gt;Y(150)
  </code></pre>
  
  <p>displayed:</p>
  
  <pre><code>ans = 
  
      [144x176 double]
  </code></pre>
  
  <p>What I want is make an array for Y, U and V that has the dimensions [numberOfFrames height width] or [150 144 176]. How can I do this?</p>