First Col to Rep Date in Double Array

1 visualización (últimos 30 días)
Tatte Berklee
Tatte Berklee el 27 de Nov. de 2019
Respondida: Kavya Vuriti el 4 de Dic. de 2019
I have a beginner question.
I have an array of doubles where columns from 2 to 10 stores doubles.
But I need the first column to represent time, so I can plot them against whichever double series I need to.
I don't know exactly how to get around with this.
I have the dates in serial numbers, but when I plot them against other double series, the x-axis obviously shows numbers instead of something like 11/1/2019.
How can I solve this issue??
  4 comentarios
Turlough Hughes
Turlough Hughes el 2 de Dic. de 2019
As in a serial number from excel? Can you attach some of the data?
Tatte Berklee
Tatte Berklee el 3 de Dic. de 2019
Hey Turlough, I resolved this in plot as the plot command makes the datetick possible to be adjusted. Thanks guys!

Iniciar sesión para comentar.

Respuesta aceptada

Kavya Vuriti
Kavya Vuriti el 4 de Dic. de 2019
Hi,
You can use timetable array which associates a time with each row and then plot them against date and time using stackedplot.

Más respuestas (1)

Sean de Wolski
Sean de Wolski el 2 de Dic. de 2019
Use a timetable and stackedplot.

Categorías

Más información sobre Line Plots en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by