How can I plot a graph for big data (csv file) in matlab?
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
kishan prajapati
le 31 Jan 2018
Commenté : Muhammad Maaz Qaiser
le 1 Août 2019
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 commentaire
Muhammad Maaz Qaiser
le 1 Août 2019
I also have the same problem. Kishan do you get a good solution let me know Please.
Thanks
Maaz
Réponse acceptée
Benjamin Kraus
le 1 Fév 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 commentaires
Benjamin Kraus
le 2 Fév 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.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Large Files and Big Data dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!