Import Tool
Import data from file
Description
The Import Tool lets you preview and import data from spreadsheet files, delimited text files, and fixed-width text files. In MATLAB® Online™, you can also preview and import data from HDF5 files and netCDF files. You can interactively select the data to import and reuse the script or function that the tool generates to import other similar files.
Open the Import Tool
MATLAB Toolstrip: On the Home tab, in the Variable section, click Import Data.
MATLAB command prompt: Enter
uiimport(
, wherefilename
)filename
is a character vector specifying the name of a text or spreadsheet file (or, in MATLAB Online, an HDF5 or netCDF file).
Examples
Related Examples
Programmatic Use
Limitations
The Import Tool does not support importing data from HDF5 files that use the Family driver, the Multi driver, or the Split driver. To import data from a file that uses one of these three drivers, use either the MATLAB high-level HDF5 functions (for example,
h5read
orh5readatt
) or the MATLAB low-level HDF5 functions.