Why do I receive the error "??? Index exceeds matrix dimensions." when using the BUSDATE function in the Financial Toolbox 2.1.3 (R12.1)?
显示 更早的评论
Why do I receive the error "??? Index exceeds matrix dimensions." when using the BUSDATE function in the Financial Toolbox 2.1.3 (R12.1)?
I tried defining my own holidays dates using a holidaysEUR file which contains the following values:
730845 730846 730852 730954 730957 730972 731210 731211 731216 731217 731304 731307 731337 731575 731576
After reading in the file, I tried finding the next available business date using BUSDATE:
hEUR = dlmread('holidaysEUR');
datestr(hEUR,1)
datestr(busdate('28-Dec-2001'),1)
datestr(busdate('27-Dec-2001',1,hEUR),1)
busdate('28-Dec-2001',1,hEUR)
But I receive the following error:
??? Index exceeds matrix dimensions.
Error in ==> D\MATLABR12p1\toolbox\finance\calendar\busdate.m
On line 70 ==> bd = reshape(t(in),max([row1 col1;row2 col2])); % find nearest days and resize
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Matrix Indexing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!