Plot large CSV files with timestamp

5 Ansichten (letzte 30 Tage)
Ancalagon8
Ancalagon8 am 21 Nov. 2018
Kommentiert: Walter Roberson am 21 Nov. 2018
I have a large csv file and try to load it into MATLAB and plot it with timestamp. My release is 2016b and i have 8gb of RAM.
My code starts like this
ds = tabularTextDatastore('2018-11-18.csv','TreatAsMissing','NA')
data = preview(ds);
whos data
data(:,1:7) % Look at first 7 variables
testdata = read(ds)
  2 Kommentare
Jan
Jan am 21 Nov. 2018
What is your question?
Ancalagon8
Ancalagon8 am 21 Nov. 2018
I need help loading and plotting my large csv file with timestamp.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Walter Roberson
Walter Roberson am 21 Nov. 2018
strcat the first two columns together with a blank between . datetime the result with an InputFormat parameter , which is required for this purpose because datetime cannot figure out fractions of a second by itself .
Now that you have timestamps and values you can prepare to plot . I think your release permitted using datetime as the X axis .
  4 Kommentare
Ancalagon8
Ancalagon8 am 21 Nov. 2018
and testdata is my file?
Walter Roberson
Walter Roberson am 21 Nov. 2018
Like you posted,
testdata = read(ds);

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Graphics Object Identification finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by