title: MATLAB: printmat with complex numbers
body: <p>I want to use MATLAB's <code>printmat</code> do display a matrix with labels. But this doesn't work for complex numbers:</p>
  
  <pre><code>N = 5; 
  
  x = rand(N,1);
  y = rand(N,1);
  z = x + 1i*y;
  
  printmat([x,y,z],'fftdemo','N=1 2 3 4 5','x y x+iy');
  </code></pre>
  
  <p>Output: </p>
  
  <pre><code>fftdemo = 
                       x            y         x+iy
        N=1      0.84072      0.34998      0.84072
          2      0.25428      0.19660      0.25428
          3      0.81428      0.25108      0.81428
          4      0.24352      0.61604      0.24352
          5      0.92926      0.47329      0.92926
  </code></pre>
  
  <p>As you can see the imaginary part of <code>z</code> isn't printed.</p>
  
  <p>Is there a way to get Matlab to display complex numbers or another way to achieve this?</p>