%% Add a CBond Instrument to an Existing Portfolio Set
% Create a bond instrument using instbond.

CouponRate= [0.035;0.04];
Settle= 'Nov-1-2013';
Maturity = 'Nov-1-2014';
Period =1;

InstSet = instbond(CouponRate,Settle,Maturity, ...
Period);

%
% Add a CBond instrument to the existing portfolio set.

ConvRatio = 1.5;
InstSet = instadd(InstSet,'CBond',CouponRate,Settle,Maturity,ConvRatio);
instdisp(InstSet)
[FieldList,ClassList,TypeString] = instcbond

% Copyright 2015 The MathWorks, Inc.