How to Read a CSV in MATLAB

Written by kenrick callwood Google
  • Share
  • Tweet
  • Share
  • Email

MATLAB produces solutions for technical computing problems faster than other programming languages such as C++ and Fortran. The software is capable of data visualisation, numeric computation, algorithm development and data analysis inside of the interactive environment. It is also capable of importing data from other files, such as comma separated value (CSV) files. To read a CSV in MATLAB, you must enter a simple command in the command window that tells the program how to treat the data.

Skill level:
Moderately Easy


  1. 1

    Move the CSV file into the MATLAB data folder. This folder is usually located inside of the MATLAB folder installed on the main hard drive of your computer. In many cases this is "C:/MATLAB/data." Open the MATLAB data folder. Drag the CSV file into the folder to complete the move.

  2. 2

    Launch MATLAB from the desktop icon or "Start" menu shortcut.

  3. 3

    Click inside of the "Command Window" pane at the top of the interface.

  4. 4

    Type "csvread('csv file name.csv')" with the double quotation marks after the ">>" symbol and press "Enter." MATLAB will read the CSV and display the contents of the file.

Don't Miss

  • All types
  • Articles
  • Slideshows
  • Videos
  • Most relevant
  • Most popular
  • Most recent

No articles available

No slideshows available

No videos available

By using the site, you consent to the use of cookies. For more information, please see our Cookie policy.