importdata
Load data from file
Syntax
Description
interpretsA
= importdata(___,delimiterIn
)delimiterIn
as the column separator in ASCII file,filename
, or the clipboard data. You can usedelimiterIn
with any of the input arguments in the above syntaxes.
loads data from ASCII file,A
= importdata(___,delimiterIn
,headerlinesIn
)filename
, or the clipboard, reading numeric data starting from lineheaderlinesIn+1
.
[
additionally returns the detected delimiter character for the input ASCII file inA
,delimiterOut
,headerlinesOut
] = importdata(___)delimiterOut
and the detected number of header lines inheaderlinesOut
, using any of the input arguments in the previous syntaxes.
Examples
Input Arguments
Output Arguments
Tips
To import ASCII files with nonnumeric characters outside of column or row headers, including columns of character data or formatted dates or times, use
readtable
instead ofimportdata
.