| MATLAB Function Reference | ![]() |
Syntax
importdata('filename')
A = importdata('filename')
importdata('filename','delimiter')
Description
importdata('filename')
loads data from filename into the workspace.
A = importdata('filename')
loads data from filename into A.
A = importdata('filename','delimiter')
loads data from filename using delimiter as the column separator (if text). Use '\t' for tab.
Remarks
importdata looks at the file extension to determine which helper function to use. If it can recognize the file extension, importdata calls the appropriate helper function, specifying the maximum number of output arguments. If it cannot recognize the file extension, importdata calls finfo to determine which helper function to use. If no helper function is defined for this file extension, importdata treats the file as delimited text. importdata removes from the result empty outputs returned from the helper function.
Examples
s = importdata('ding.wav')
s =
data: [11554x1 double]
fs: 22050
See Also
| import | imread | ![]() |