Skip to main content

9.1) Reading And Writing Data


How can we import data into Matlab?

Matlab offers a wealth of functionality to help the user load and import data into the Matlab environment. We shall introduce the followings ways to import data into Matlab:

  • Importing data using the generic importdata command
  • Copying and pasting
  • Importing from a text file, using load, textread and textscan
  • Importing from an Excel spreadsheet