title: extracting data from an existing matrix
body: <p>I have a matrix containing 4320 entries</p>
  
  <p>for example:</p>
  
  <p>P=[ 26 29 31 33 35 26 29 ..........25]</p>
  
  <p>I want to create 180 matrices and every matrix contains 24 entries,i.e</p>
  
  <p>the 1st matrix contains the 1st 24 entries</p>
  
  <p>the 2nd matrix contains the 2nd 24 entries and so on</p>
  
  <p>I know a simple method but it will take a long time which is:</p>
  
  <p>P1=P(1:24);P2=P(25:48),..........P180=P(4297:4320)</p>
  
  <p>and it is dificult since I have huge number of entries for</p>
  
  <p>the original matrix P</p>
  
  <p>thanks</p>