How can I plot a graph for big data (csv file) in matlab?

I have a large file (csv file) and has more than 1 million data. it contains time stamp and sensor value. I want to plot the data using matlab. Can you please anyone guide me for that.
Thanks kishan

1 件のコメント

Muhammad Maaz Qaiser
Muhammad Maaz Qaiser 2019 年 8 月 1 日
I also have the same problem. Kishan do you get a good solution let me know Please.
Thanks
Maaz

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

 採用された回答

Benjamin Kraus
Benjamin Kraus 2018 年 2 月 1 日

1 投票

1 million data points shouldn't be too hard for MATLAB to handle. Have you tried just csvread and plot?
If that is too slow, you can start looking into some of our datastore options (introduced in R2014b):

3 件のコメント

kishan prajapati
kishan prajapati 2018 年 2 月 1 日
Thank you for the response. I will sure try the method you recommended and give you feedback.
I have got another question as well. I have got lot of csv file for different sensor readings. And, all of them contain almost a million data, but the readings are in different time-stamp. Now, I want to synchronize the all the sensor reading (all sensor readings in same time-stamp by interpolation). Can you give me some ideas for this issue. thank you.
Benjamin Kraus
Benjamin Kraus 2018 年 2 月 2 日
It depends on whether your data can fit in memory on the computer or not.
The first thing that comes to mind is the timetable object, which has two methods: retime and synchronize. If you can load all your data into timetable objects at once (they fit in memory), then you can use synchronize so that they all synchronize to common time vector. If you cannot load them all into memory at once, you can consider loading them one at a time and using retime to set them to common time vectors, then perhaps write back out to new CSV files with the new timing.
I'm not as familiar with the datastore options, but I believe there is a way to create a datastore that references several different CSV files and treats them all as a single data source (without loading them into memory). Once you've created the datastore, you can perform operations on the entire set, and it will coalesce the calculations to perform them more efficiently on the data set.
kishan prajapati
kishan prajapati 2018 年 2 月 2 日
Thank you so much. Appreciated a lot. And, surely I will come back after I try your suggestion. Thank :)

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeTime Series Events についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by