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

5 visualizzazioni (ultimi 30 giorni)
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 Commento
Muhammad Maaz Qaiser
Muhammad Maaz Qaiser il 1 Ago 2019
I also have the same problem. Kishan do you get a good solution let me know Please.
Thanks
Maaz

Accedi per commentare.

Risposta accettata

Benjamin Kraus
Benjamin Kraus il 1 Feb 2018
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 Commenti
Benjamin Kraus
Benjamin Kraus il 2 Feb 2018
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 il 2 Feb 2018
Thank you so much. Appreciated a lot. And, surely I will come back after I try your suggestion. Thank :)

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Large Files and Big Data in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by