WOLFRAM LANGUAGE IMPORT/EXPORT FORMAT

MTP (.mtp)

  • Import supports the MTP format.

BackgroundBackground

    Minitab portable worksheet format.
    Statistical data format.
    Used for exchanging and archiving statistical data.
    MTP is an acronym derived from Minitab Portable Worksheet.
    Plain text ASCII format.
    Stores arrays of labeled data.
    Developed in the 1970s as part of the Minitab Statistical Software.

Import and ExportImport and Export

  • Import["file.mtp"] imports an MTP file, returning a list of lists.
  • Import["file.mtp"] returns a two-dimensional array of strings and numbers, representing the rows and columns stored in the file.
  • Import["file.mtp",elem] imports the specified element from an MTP file.
  • Import["file.mtp",{elem,suba,subb,}] imports a subelement.
  • Import["file.mtp",{{elem1,elem2,}}] imports multiple elements.
  • The import format can be specified with Import["file", "MTP"] or Import["file",{"MTP",elem,}].
  • See the reference pages for full general information on Import.
  • ImportString supports the MTP format.

ElementsElements

  • General elements:
  • "Elements"list of elements and options available in this file
    "Rules"full list of rules for each element and option
    "Options"list of rules for options, properties, and settings
  • Data representation elements:
  • "Data"datasets arranged as a table
    "LabeledData"datasets given as a list of rules
  • Import uses the element by default.
  • Textual information:
  • "TextData"textual data given as a list of rules

OptionsOptions

  • Import option:
  • "EmptyField"""how empty cells are represented in the Wolfram System

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

Show the Import elements available in an MTP sample file:

In[1]:=
Click for copyable input
Out[1]=

Import this file as a list of rules, each representing a labeled dataset:

In[2]:=
Click for copyable input
Out[2]=
In[3]:=
Click for copyable input
Out[3]=

Read all numerical data from this file as an array, typesetting the first 10 rows as a table:

In[4]:=
Click for copyable input
Out[4]//TableForm=
Introduced in 2007
(6.0)