How can i plot time series data from CSV

5 Ansichten (letzte 30 Tage)
Archie TSANG
Archie TSANG am 1 Jun. 2016
Kommentiert: Star Strider am 2 Jun. 2016
I have a set of time seris data (attachment). how can I plot it in Matlab?

Akzeptierte Antwort

Star Strider
Star Strider am 1 Jun. 2016
This works:
[d,s,r] = xlsread('temp.csv');
t = d(:,1);
v = d(:,2);
figure(1)
plot(t, v);
grid
xlabel('Time')
ylabel('Value')
  4 Kommentare
Archie TSANG
Archie TSANG am 2 Jun. 2016
Got it! thank you!
Star Strider
Star Strider am 2 Jun. 2016
My pleasure!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Time Series Events 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