importdata
Load data from file
Syntax
Description
loads
data from the system clipboard rather than from a file.A
= importdata('-pastespecial')
interprets A
= importdata(___,delimiterIn
)delimiterIn
as the column separator
in ASCII file, filename
, or the clipboard data.
You can use delimiterIn
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 line headerlinesIn+1
.
[
additionally returns the
detected delimiter character for the input ASCII file in A
,delimiterOut
,headerlinesOut
]
= importdata(___)delimiterOut
and
the detected number of header lines in headerlinesOut
,
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
.
Version History
Introduced before R2006a