title: How to pretty print a matrix in Octave?
body: <p>I want to create a pretty printed table from a matrix (or column vector).
  For Matlab there are several available functions that can do this (such as <em>printmat, array2table</em>, and <code>table</code>), but for Octave I cannot find any. </p>
  
  <p>So instead of:</p>
  
  <pre class="lang-matlab prettyprint-override"><code>&gt;&gt; a = rand(3,2)*10;
  &gt;&gt; round(a)
  ans =
  
      2   10
      1    3
      2    1
  </code></pre>
  
  <p>I would like to see:</p>
  
  <pre class="lang-matlab prettyprint-override"><code>&gt;&gt; a = rand(3,2)*10;
  &gt;&gt; pretty_print(round(a))
  
     THIS   THAT
  R1    2   10
  R2    1   3
  R3    2   1
  </code></pre>
  
  <p><strong>How can I produce a pretty printed table from a matrix?</strong><br>
  (Any available package to do so?)</p>
  
  <hr>
  
  <p><strong>UPDATE</strong></p>
  
  <p>After trying to follow the extremely obtuse package installation instruction from Octave Wiki, I kept getting the error <a href="https://stackoverflow.com/a/55855848/1147688"><code>pkg: failed to read package 'econometrics-1.1.1.tar.gz': Couldn't resolve host name</code></a>. Apparently the windows version isn't able to use the direct installation command (as given on their Wiki). The only way I managed to get it, was by first downloading the package manually into the current working directory of Octave. (See <code>pwd</code> output.) Only <strong>then</strong> did the install command work.</p>
  
  <pre class="lang-matlab prettyprint-override"><code>pkg install econometrics-1.1.1.tar.gz
  pkg load econometrics
  </code></pre>