What’s the difference between importdata() and csvread() to read a CSV file in MATLAB?

Posted by:

What’s the difference between importdata() and csvread() to read a CSV file in MATLAB?

What’s the difference between importdata() and csvread() to read a CSV file in MATLAB? It’s pretty much the same as well as both importdata() and csvread() end up using textscan() to read the file:

Excel is a much more powerful tool than a CSV. Excel can be used to perform advanced mathematical calculations, used as a database and to generate insightful reports. I have used excel as a calculation tool, used as a database and generated a variety of reports using pivot tables.

CSVs are more of a legacy database mechanism. The below is the best way Using CSVs for phone contacts is one of the best means to port it across mobiles of different makes and operating systems.

What is CSV?

CSV is an advanced file format. Microsoft Excel or OpenOffice Calc. CSV stands for “comma-separated values

What is MATLAB?

MATLAB is a high-performance language for technical computing. It has computerization, visualization, etc.

difference between importdata

  • csvread() calls dlmread(), which in turns calls textscan().
  • importdata() first does a bunch of checks on the filename’s extension as unlike csvread() it supports more formats than just CSV, but then calls textscan().
0

Add a Comment