How to get data from CSV file to Table
조회 수: 69 (최근 30일)
이전 댓글 표시
MathWorks Support Team
2017년 7월 12일
답변: MathWorks Support Team
2017년 7월 24일
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?
채택된 답변
MathWorks Support Team
2017년 7월 12일
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
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Tables에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!