title: MATLAB: Split array
body: <p>I have a Matlab array </p>
  
  <pre><code>K=[2, 4, 5, 7, 7.3, 8, 9, 0, 2.1, 5, 7, 3] % 1x12
  </code></pre>
  
  <p>I need to split it into three arrays</p>
  
  <pre><code>[K1, K2, K3] = K
  </code></pre>
  
  <p>Where </p>
  
  <pre><code>K1= 1 x 2
  K2= 1 x 4
  K3= 1 x 6
  </code></pre>
  
  <p>Is there any single inline command doing such split?</p>
  
  <pre><code>[K1,K2,K3]=split(K,2,4,6)
  </code></pre>