plot3 with datetime

조회 수: 2 (최근 30일)
Cameron Brown
Cameron Brown 2016년 4월 25일
댓글: Cameron Brown 2016년 4월 28일
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

채택된 답변

Nikhil Vyas
Nikhil Vyas 2016년 4월 28일
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
Cameron Brown
Cameron Brown 2016년 4월 28일
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.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Dates and Time에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by