How can i make use of csv file format in my matlab coding

1 回表示 (過去 30 日間)
Khan
Khan 2012 年 9 月 19 日
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.
  1 件のコメント
per isakson
per isakson 2012 年 9 月 19 日
Searc for "Importing Text Data Files" in the help

サインインしてコメントする。

採用された回答

Shane
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
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.
Khan
Khan 2012 年 9 月 19 日
thank you all for your kind cooperation i will find out how much data i need for my analysis because i have total data about 3 GB. if i had any inconvenience i will let you know Thanks and regards Khan

サインインしてコメントする。

その他の回答 (1 件)

Thomas
Thomas 2012 年 9 月 19 日

カテゴリ

Help Center および File ExchangeData Import and Analysis についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by