why does the year function not work as specified in documentation?
1 次查看(过去 30 天)
显示 更早的评论
see attachment
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/151729/image.png)
0 个评论
采纳的回答
Mischa Kim
2015-6-30
Edmund, you probably do not have access to the Financial Toolbox. Check out this answer for more info.
更多回答(1 个)
Azzi Abdelmalek
2015-6-30
Check if year is not used as a variable. Try this
clear year
year('12-dec-1992')
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Financial Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!