In data analysis, a fundamental role is assumed by the exchange of such data between the analysis environment and external devices. We start from data collection and importing in MATLAB for whatever analysis we are going to do--always. As well, we will finish our activities by exporting the results. There are several ways to import and export data in the MATLAB environment depending on the different formats in which data is available. In this section, we will cover data import.
We can import files into MATLAB both interactively and programmatically. Interactively, we can import data from a disk file or the system clipboard. From a file, do any one of these three actions:
- On the
HOMEtab, in the
- Double-click on a filename in the
- Call the
uiimport()function via the command line.
From the clipboard, do any one of the two following actions:
- On the
Workspacebrowser title bar, click on the triangle...