importdata
从文件加载数据
句法
一个= importdata(文件名)
a = importdata(' - tastepecial')
一个= importdata(___,分界符)
一个= importdata(___,,,,delimiterIn,headerlinesIn)
[a,delimiterout,headerLinesout] = importdata(___)
Description
解释一个
= importdata(___,,,,delimiterIn
)delimiterIn
as the column separator in ASCII file,文件名
,或剪贴板数据。您可以使用delimiterIn
with any of the input arguments in the above syntaxes.
从ASCII文件加载数据,一个
= importdata(___,,,,delimiterIn
,,,,耳线
)文件名
,,,,or the clipboard, reading numeric data starting from line耳线+1
。
[[
additionally returns the detected delimiter character for the input ASCII file in一个
,,,,DeLimiterout
,,,,headerlinesout
] = importdata(___)DeLimiterout
and the detected number of header lines inheaderlinesout
,,,,using any of the input arguments in the previous syntaxes.
Examples
输入参数
输出参数
Tips
要在列或行标头外用非数字字符导入ASCII文件,包括字符数据或格式日期或时间的列,请使用
textscan
代替importdata
。
也可以看看
Introduced before R2006a
Was this topic helpful?