How can i make use of csv file format in my matlab coding
조회 수: 2 (최근 30일)
이전 댓글 표시
i have vibration data store from machine in csv file format. i tried to load data to Matlab by command " load vib_data.csv" but it fails to work.
채택된 답변
Shane
2012년 9월 19일
Yes, csvread will be the function to use as it brings in all of the data into a single matrix without having to convert it from a cell array.
A = csvread('filepath\filename.csv')
Please keep in mind that csvread works with numeric data only. I would assume that your vibration data is most likely all numeric anyways but any headers or annotations that are present in the csv will not be imported by matlab.
댓글 수: 5
Thomas
2012년 9월 19일
How big is your data and how much memory do you have on the system.. Read only as much of the data that you need. This might mean that you have to write your own parser, but that's not too hard with the indicated file format.
추가 답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Data Import and Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!