全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 EViews专版
980 0
2016-12-19
InsureOutFlowPV=0;
StartPayAge=30;
EndPayAge=40;
OutPayment=15940;
Rate=0.03;
%PV=InsureOutFlowPV(StartPayAge,EndPayAge,DeadAge,OutPayment,Rate)
%%
%DeadAge=[35,45,61,75,89,95];
DeadAge=31:100;
PVI=zeros(1,length(DeadAge));
PVO=zeros(1,length(DeadAge));
for i=1:length(DeadAge)
    PVI(i)=InsureInFlowPV(StartPayAge,DeadAge(i),OutPayment,Rate);
    PVO(i)=InsureOutFlowPV(StartPayAge,EndPayAge,DeadAge(i),...
        OutPayment,Rate);
end
plot(31:100,PVI,'-*',31:100,PVO,'-o')
legend('InsureInFlowPV','InsureOutFlowPV')

>> R3test
索引超出矩阵维度。


出错 R3test (line 14)
    PVO(i)=InsureOutFlowPV(StartPayAge,EndPayAge,DeadAge(i),...

请问怎么修改啊?



二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群