title: Plot multidimensional array in Matlab
body: <p>I have a matrix of, say:</p>
  
  <pre><code>size P = zeros(2,2,100);
  </code></pre>
  
  <p>Let's try to plot the first element of each of these matrices, like this:</p>
  
  <pre><code>plot(1:1:100, P(1,1,:))
  </code></pre>
  
  <p>This does not work. What is the proper way to do it?</p>