Statistics Toolbox    
tblread

Read tabular data from the file system

Syntax

Description

[data,varnames,casenames] = tblread displays the File Open dialog box for interactive selection of the tabular data file. The file format has variable names in the first row, case names in the first column and data starting in the (2,2) position.

[data,varnames,casenames] = tblread(filename) allows command line specification of the name of a file in the current directory, or the complete pathname of any file.

[data,varnames,casenames] = tblread(filename,'delimiter') allows specification of the field 'delimiter' in the file. Accepted values are 'tab', 'space', or 'comma'.

tblread returns the data read in three values.

Return Value
Description
data
Numeric matrix with a value for each variable-case pair.
varnames
String matrix containing the variable names in the first row.
casenames
String matrix containing the names of each case in the first column.

Example

See Also

caseread, tblwrite, tdfread


  tabulate tblwrite