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

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

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.
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.
Thank you so much. Appreciated a lot. And, surely I will come back after I try your suggestion. Thank :)

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Time Series Events에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by