plot3 with datetime

2 visualizaciones (últimos 30 días)
Cameron Brown
Cameron Brown el 25 de Abr. de 2016
Comentada: Cameron Brown el 28 de Abr. de 2016
Is it possible to use datetime class variables with any plot functions other than plot? e.g. plot3 If I try the following command:
plot3(datetime,1,1)
I get the following error:
Error using plot3
A numeric or double convertible argument is expected

Respuesta aceptada

Nikhil Vyas
Nikhil Vyas el 28 de Abr. de 2016
It's not possible to use datetime with plot3. However, you can use your axis values with datetick to display the axis ticks as dates. For more details on datetick, refer the following link:
  1 comentario
Cameron Brown
Cameron Brown el 28 de Abr. de 2016
datetick is not convenient to work with since it does not update during zooming and panning.
I look forward to future versions of MATLAB in which datetick updates during zooming and panning.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Dates and Time en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by