Navigation

Operators and Keywords

Function List:

C++ API

: A = importdata (fname)
: A = importdata (fname, delimiter)
: A = importdata (fname, delimiter, header_rows)
: [A, delimiter] = importdata (…)
: [A, delimiter, header_rows] = importdata (…)

Import data from the file fname.

Input parameters:

  • fname The name of the file containing data.
  • delimiter The character separating columns of data. Use \t for tab. (Only valid for ASCII files)
  • header_rows The number of header rows before the data begins. (Only valid for ASCII files)

Different file types are supported:

  • ASCII table

    Import ASCII table using the specified number of header rows and the specified delimiter.

  • Image file
  • MATLAB file
  • Spreadsheet files (depending on external software)
  • WAV file

See also: textscan, dlmread, csvread, load.

Package: octave