error with bndprice command
显示 更早的评论
Hello,
I always got the error 'CouponRate is required for all Bond instruments.' when using the bndprice command and I don't know what is wrong.
A=[0.02:0.005:0.05]
B=zeros(numel(A),2)
for i=1:numel(A)
[intrinsicValue,accruedInterest]=bndprice(0.045,A(i),'01-Mei-2016','30-Jun-2021')
B(i,1)=intrinsicValue
B(i,2)=accruedInterest
end
plot(B(1),B(2))
Thanks in advance
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Oscilloscopes 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
