.csv file data extraction
조회 수: 2 (최근 30일)
이전 댓글 표시
I have a database of experiment .csv files and the data of interest does not start until row 49 and continues down each column for n rows (stops when data collection was ended). I would like to read the file and create an array for each column, then plot the results individually. Note: column A is a timestamp and subsequent columns are recorded data ex: Temperature. Any help would be appreciated, I am a rookie at this Matlab game.
댓글 수: 1
per isakson
2015년 1월 11일
textscan, Read formatted data from text file or string is one possibility. In recent Matlab release, textscan has a new feature to parse timestamp.
답변 (1개)
Umakant
2015년 1월 13일
You can read the data and store it in a table. Please refer to the following link for information on using the ‘readtable’ function:
The data is stored columnwise as desired. We can access the table to do further computations. Please refer to the following link for more information on accessing data in a table:
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Text Files에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!