Why do I receive the error "??? Index exceeds matrix dimensions." when using the BUSDATE function in the Financial Toolbox 2.1.3 (R12.1)?
Mostrar comentarios más antiguos
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
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Matrix Indexing en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!