Previous Page Next Page Contents

output::tableForm -- printing objects in table form

Introduction

output::tableForm(obj) prints the object obj in table form.

Call(s)

output::tableForm(object <, seperator> <, options>)

Parameters

object - list or set of any MuPAD objects
seperator - string between columns
options - one single option or a set of options

Options

Unquoted - strings will be printed without quotes
Unique - all columns are of the same width
Left, Center, Right - the entries will be aligned left, center or right
Sort= procedure - the entries will be sorted
Output= file - Output into a file.

Returns

no return value

Related Functions

output::tree, print, fopen, fprint, fclose

Details

Option: Unquoted

Option: Unique

Option: Left, Center, Right

Option: Sort = procedure

Option: Output = file

Example 1

>> output::tableForm(anames(DOM_DOMAIN))
      ClientObject DOM_ARRAY    DOM_BOOL   DOM_COMPLEX
      DOM_DOMAIN   DOM_EXEC     DOM_EXPR   DOM_FAIL
      DOM_FLOAT    DOM_FUNC_ENV DOM_IDENT  DOM_INT
      DOM_LIST     DOM_NIL      DOM_NULL   DOM_POINT
      DOM_POLY     DOM_POLYGON  DOM_PROC   DOM_PROC_ENV
      DOM_RAT      DOM_SET      DOM_STRING DOM_TABLE
      DOM_VAR      Plot         Pref       misc
      output       plot         polylib    specfunc
      stdlib
>> output::tableForm(map(anames(DOM_DOMAIN), expr2text), "  ", {Unique, Center})
      "ClientObject"   "DOM_ARRAY"      "DOM_BOOL"
      "DOM_COMPLEX"    "DOM_DOMAIN"     "DOM_EXEC"
        "DOM_EXPR"      "DOM_FAIL"     "DOM_FLOAT"
      "DOM_FUNC_ENV"   "DOM_IDENT"      "DOM_INT"
        "DOM_LIST"      "DOM_NIL"       "DOM_NULL"
       "DOM_POINT"      "DOM_POLY"    "DOM_POLYGON"
        "DOM_PROC"    "DOM_PROC_ENV"    "DOM_RAT"
        "DOM_SET"      "DOM_STRING"    "DOM_TABLE"
        "DOM_VAR"         "Plot"          "Pref"
          "misc"         "output"         "plot"
        "polylib"       "specfunc"       "stdlib"
>> output::tableForm(anames(DOM_DOMAIN), ", ", {Sort = FALSE, Right})
      ClientObject,    DOM_ARRAY,   DOM_BOOL,  DOM_COMPLEX,
        DOM_DOMAIN,     DOM_EXEC,   DOM_EXPR,     DOM_FAIL,
         DOM_FLOAT, DOM_FUNC_ENV,  DOM_IDENT,      DOM_INT,
          DOM_LIST,      DOM_NIL,   DOM_NULL,    DOM_POINT,
          DOM_POLY,  DOM_POLYGON,   DOM_PROC, DOM_PROC_ENV,
           DOM_RAT,      DOM_SET, DOM_STRING,    DOM_TABLE,
           DOM_VAR,         Plot,       Pref,         misc,
            output,         plot,    polylib,     specfunc,
            stdlib

Changes




Do you have questions or comments?


Copyright © SciFace Software GmbH & Co. KG 2000