眼下正在学习matlab,跟着郑志勇的《金融数量分析》一书亦步亦趋的学习,现在学到HJM模型,大家帮忙看看,为什么会出现Undefined function 'hjmvolspec' for input arguments of type 'char'.请指教。
>> compounding=1;
>> valuationdate='01-01-2000';
>> startdate=['01-01-2000';'01-01-2001';'01-01-2002';'01-01-2003';'01-01-2004'];
>> enddates=['01-01-2001';'01-01-2002';'01-01-2003';'01-01-2004';'01-01-2005'];
>> rates=[.1;.11;.12;.125;.13];
>> volatility=[0.2;0.19;0.18;0.17;0.16];
>> curveterm=[1;2;3;4;5];
>> HJMVolSpec=hjmvolspec('Stationary',volatility,curveterm);
Undefined function 'hjmvolspec' for input arguments of type 'char'.
>> compounding=1;
>> valuationdate='01-01-2000';
>> startdate=['01-01-2000';'01-01-2001';'01-01-2002';'01-01-2003';'01-01-2004'];
>> enddates=['01-01-2001';'01-01-2002';'01-01-2003';'01-01-2004';'01-01-2005'];
>> rates=[.1;.11;.12;.125;.13];
>> curvevol=[.2;.19;.18;.17;.16];
>> curveterm=[1;2;3;4;5];
>> hjmvolspec=hjmvolspec('stationary',curvevol,curveterm)
Undefined function 'hjmvolspec' for input arguments of type 'char'.
>> hjmvolspec=hjmvolspec('stationary',curvevol,curveterm);
Undefined function 'hjmvolspec' for input arguments of type 'char'.


雷达卡


京公网安备 11010802022788号







