Error using days365

8 ビュー (過去 30 日間)
anand mahadevan
anand mahadevan 2017 年 2 月 21 日
回答済み: Andreas Goser 2018 年 2 月 9 日
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.
  1 件のコメント
Asliddin Komilov
Asliddin Komilov 2018 年 2 月 9 日
i have the same problem, my old code had days365 and now it doesn't do the job

サインインしてコメントする。

回答 (1 件)

Andreas Goser
Andreas Goser 2018 年 2 月 9 日
To debug, run the command:
which days365 -all
It should just return one line, like for me:
C:\Program Files\MATLAB\R2017b\toolbox\finance\calendar\days365.m
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.

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by