Can someone please help with following conversion :
조회 수: 1 (최근 30일)
이전 댓글 표시
_ Can someone please help with following conversion : _
t = datetime(731885.75,'ConvertFrom','datenum')
Undefined function 'datetime' for input arguments of type 'double'.
Error in Untitled (line 2)
t = datetime(731885.75,'ConvertFrom','datenum')
댓글 수: 0
채택된 답변
Azzi Abdelmalek
2015년 7월 12일
datetime was introduced since Matlab 2014b, what is your Matlab version?
댓글 수: 3
추가 답변 (1개)
Walter Roberson
2015년 7월 12일
datetime() was introduced in R2014b; you probably have a version earlier than that.
댓글 수: 3
Walter Roberson
2015년 7월 12일
The convention is that the independent variable should go on the x axis and the dependent variable should go on the y axis. Does windspeed lead to a change in time, or does time lead to a change in windspeed?
plot(timeprac, windspeedprac);
title('Wind Speed versus time');
xlabel('time t (HH:MM:SS)');
ylabel('wind speed (km/hr)');
datetick('x', 'HH:MM:SS');
참고 항목
카테고리
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!