| MATLAB Function Reference | ![]() |
Syntax
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
See Also
| import | imread | ![]() |