@@ ATTENTION @@
I've merged my separate submissions into KerMor/matlabtools (http://de.mathworks.com/matlabcentral/fileexchange/52299-kermor-matlabtools), which contains this submission. Please refer to that package to retrieve the current status.
This class allows to display and print a table with arbitrary number of columns.
The first row can be distinguished from others by a HasHeader flag and the column separator string can be customized.
Basic automatic conversion allows to pass common, easily string-representable data types, and optionally sprintf-compatible format strings or callbacks can be passed for either all entries or entry-specific.
Optionally a caption can be added to the PrintTable upon construction, directly taking sprintf-like arguments.
Allows to save the table in the formats 'txt' (plain text), 'tex' (LaTeX tabular) and 'pdf' (Basically using pdflatex on 'tex' output).
The table can easily be transposed and sorted.
In difference to the submission #33717 I make use of classes and have more possibilities regarding output and appearance.
Now a basic automatic $Math$-Environment detection for LaTeX is available.