Function File: [data, varnames, casenames] = tblread (filename)
Function File: [data, varnames, casenames] = tblread (filename, delimeter)

Read tabular data from an ascii file.

data is read from an ascii data file named filename with an optional delimeter. The delimeter may be any single character or

  • "space" " " (default)
  • "tab" "\t"
  • "comma" ","
  • "semi" ";"
  • "bar" "|"

The data is read starting at cell (2,2) where the varnames form a char matrix from the first row (starting at (1,2)) vertically concatenated, and the casenames form a char matrix read from the first column (starting at (2,1)) vertically concatenated.

See also: tblwrite, csv2cell, cell2csv.

Package: statistics