How can i plot time series data from CSV

5 visualizaciones (últimos 30 días)
Archie TSANG
Archie TSANG el 1 de Jun. de 2016
Comentada: Star Strider el 2 de Jun. de 2016
I have a set of time seris data (attachment). how can I plot it in Matlab?

Respuesta aceptada

Star Strider
Star Strider el 1 de Jun. de 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 comentarios
Archie TSANG
Archie TSANG el 2 de Jun. de 2016
Got it! thank you!
Star Strider
Star Strider el 2 de Jun. de 2016
My pleasure!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Time Series Events en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by