필터 지우기
필터 지우기

How do I plot data date time strings or datetime variables as data points in a plot?

조회 수: 4 (최근 30일)
so if I have a vector of datetime variables as the y axis, that have days of the year , and a vector of datetime variables, that have hours in the day, as the xaxis , that represent hours of the day, then a matrix of weather temperatures for my z variable.
How do I plot them all together using the 2-D version of surf, as data points without having to relable the x and y axis?
So if I click on the data cursor in the figure, it will show me the x: hour of the day
y : day of the year dd/mm/yyyy
z : temperature

채택된 답변

Walter Roberson
Walter Roberson 2018년 5월 15일
Use datacursormode() to program a custom UpdateFcn

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by