Saving data to current date

1 visualización (últimos 30 días)
Sam Sankarey
Sam Sankarey el 4 de Abr. de 2021
Respondida: Rik el 4 de Abr. de 2021
Hi,
Whenever a user opens my script, it would ask the user to input a value for variable x.
this x value is added to a vector with all the previous x values.
I would like to save the current date of the input moment so I can plot a graph that shows the development of x over time.
How can I record the current day and save it to a second vector which can be plotted on the horizontal axis when plotting?
I tried the function date but that returns a string like: '04-april-2021'
this can unfortunately not be plotted on the horizontal axis

Respuestas (1)

Rik
Rik el 4 de Abr. de 2021
doc datetime

Categorías

Más información sobre 2-D and 3-D Plots 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