Can someone please help with following conversion :
Ältere Kommentare anzeigen
_ 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')
Akzeptierte Antwort
Weitere Antworten (1)
Walter Roberson
am 12 Jul. 2015
1 Stimme
datetime() was introduced in R2014b; you probably have a version earlier than that.
3 Kommentare
Aswas
am 12 Jul. 2015
Aswas
am 12 Jul. 2015
Bearbeitet: Azzi Abdelmalek
am 12 Jul. 2015
Walter Roberson
am 12 Jul. 2015
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');
Kategorien
Mehr zu Time Series Objects finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!