Why can't I access day, juliandate?
9 views (last 30 days)
I have R2015a and can see help for day and juliandate, but I can't access to them from Matlab, and they are not in c:\Program Files\MATLAB\R2015a\, although c:\Program Files\MATLAB\R2015a\help\matlab\ref\juliandate.html is there.
Undefined function or variable 'juliandate'.
Is there a problem with my installation? Or what do I need to obtain these programs?
Sean de Wolski on 4 Aug 2015
It's in the aerospace toolbox, are you able to pull it?
which juliandate -all
Peter Perkins on 5 Aug 2015
KE, day is a function in the Financial Toolbox, and juliandate is a function in the Aerospace Toolbox. The fact that you're asking about both, and have R2015a, makes me wonder if perhaps you're missing those toolboxes, but are looking at documentation for the datetime data type, which has day and juliandate methods. It's new in R2014b.
>> d = datetime('now')
datetime is more or less a replacement for the combination of the suite of datenum/datevec/datestr functions, and in general, you want to use either datetime, or use the old functions, but not mix them.