How to pretty print a matrix in Octave?
问题 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 printmat, array2table , and table ), but for Octave I cannot find any. So instead of: >> a = rand(3,2)*10; >> round(a) ans = 2 10 1 3 2 1 I would like to see: >> a = rand(3,2)*10; >> pretty_print(round(a)) THIS THAT R1 2 10 R2 1 3 R3 2 1 How can I produce a pretty printed table from a matrix? (Any available package to do so?) UPDATE After trying