How to get data from CSV file to Table

I have a CSV file and would like to use the data in MATLAB but I am unsure of how to do so. I would like to store the data in a table. How can I do this? 

 采纳的回答

There are two ways to do this:
1) use the 'readtable' function: 
https://www.mathworks.com/help/matlab/ref/readtable.html
2) In the "Home" tab -> Select "Import Data" button -> Select CSV file -> Output Type: "Table" -> Click "Import Selection" button
Both will yield a table in your workspace that you can use within MATLAB. 
 

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Tables 的更多信息

产品

版本

R2017a

标签

尚未输入任何标签。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by