How can i plot time series data from CSV

5 vues (au cours des 30 derniers jours)
Archie TSANG
Archie TSANG le 1 Juin 2016
Commenté : Star Strider le 2 Juin 2016
I have a set of time seris data (attachment). how can I plot it in Matlab?

Réponse acceptée

Star Strider
Star Strider le 1 Juin 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 commentaires
Archie TSANG
Archie TSANG le 2 Juin 2016
Got it! thank you!
Star Strider
Star Strider le 2 Juin 2016
My pleasure!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Time Series Events 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!

Translated by