Why does surf bin datenum time in two bins?
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi
I don't know whether I'm doing something wrong, or whether this is a bug. When I use
surf(t,Y,Z)
in which t is a timeseries given in the matlab continuous time datenum, surf only plots two bins in the t-dimension. My guess is this has something to do with the too small relative difference between the vector elements, so surf bins them together. But why does surf do this and how can I prevent this? I need datenum to then be able to use dateticks.
My current solutions is to substract floor(t) from t, so that my timeseries starts some hours after the 0 point of the datenum time. This is ok for now, because I only need the hours on the axis. But if I need more, it might not work.
댓글 수: 2
Star Strider
2014년 11월 17일
Posting the relevant parts of your code would help, especially your vector of dates and some actual or sample (t,Y,Z) data corresponding to them.
Also, how many dates/times do you want displayed?
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Dates and Time에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!