Error using days365
7 views (last 30 days)
The piece of code below is an example given in the Matlab documentation at https://www.mathworks.com/help/finance/days365.html
NumDays = days365('15-jan-2000', '15-mar-2000')
But running this gives an error message which reads
"Undefined function 'days365' for input arguments of type 'char'".
I am using the matlab online.
I was wondering what was the cause for the error.
Andreas Goser on 9 Feb 2018
To debug, run the command:
which days365 -all
It should just return one line, like for me:
In case you have something else as first output, you have another function or variable with the same name on the path - a "shadowing" effect.