What's the corresponding function to "xtickformat" in Matlab R2015a?

조회 수: 4 (최근 30일)
Mohamed Nedal
Mohamed Nedal 2017년 5월 11일
댓글: Manoj 2018년 7월 29일
Hello, I want to use the function:
xtickformat('hh:mm')
in Matlab R2015a, but it told me:
Undefined function or variable 'xtickformat'.
How can I fix this?

채택된 답변

Star Strider
Star Strider 2017년 5월 11일
You probably are looking for the datetick (link) function.
  댓글 수: 3
Mohamed Nedal
Mohamed Nedal 2017년 5월 11일
I tried it too but it didn't work.
Walter Roberson
Walter Roberson 2017년 5월 11일
What is the class() of your data on the x axis?
Note: you need to re-do the datetick() after each zoom or pan. datetick() sets the axes xticklabel property to particular strings, and is not able to update automatically when the tick locations change due to zoom or pan.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Axes Appearance에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by