Skip to content

nexus_table_display_text

table · scripts/table/nexus_table_display_text.m

NEXUS_TABLE_DISPLAY_TEXT  The text MATLAB prints for a table.

  [HEADER, BODY] = NEXUS_TABLE_DISPLAY_TEXT (T) returns the size line
  ("  3x2 table", "  0x0 empty table" or "  table" for one row and one
  variable) and the formatted body (column headings, underline and rows,
  ending in a blank line; empty for a 0x0 table).  Used by the table
  disp and display methods.

  With TRUNCATE true (display, as opposed to disp) a table of more than 20
  rows shows its first five rows, a ":" row and its last five; TAIL is
  then the "Display all N rows" line that follows the body.

  Layout, as MATLAB's: four spaces of indent, columns four spaces apart,
  headings centred over their column, underlined with "_"; numbers use
  five significant digits and are right-aligned in a block that is
  centred under the heading; text, logicals and cells are left-aligned in
  their block; row names form a left-aligned first column.