How can I price an existing bond using the FLOATBYZERO function in the Financial Derivatives Toolbox?

조회 수: 4 (최근 30일)
I would like to price the following bond using the FLOATBYZERO function:
The spread of the bond is 50bp. It is an existing floating bond which was issued two years ago. The last reset is 12/31/2004 and it will mature 12/31/2010. I would like to find the price of this bond on 4/5/2005.

채택된 답변

MathWorks Support Team
MathWorks Support Team 2009년 6월 27일
The following code uses the FLOATBYZERO function to meet the bond specification:
Spread = 50;
Maturity = '12-31-2010';
Settle = '04-05-2005';
RateData = [datenum('12/31/2004') datenum('6/30/2005') 2.78
datenum( '4/5/2005') datenum('10/5/2005') 3.38
datenum( '4/5/2005') datenum( '4/5/2006') 3.79
datenum( '4/5/2005') datenum( '4/5/2007') 4.16
datenum( '4/5/2005') datenum( '4/5/2008') 4.36
datenum( '4/5/2005') datenum( '4/5/2010') 4.59
datenum( '4/5/2005') datenum( '4/5/2012') 4.76
datenum( '4/5/2005') datenum( '4/5/2015') 4.94];
StartDates = RateData(:,1);
EndDates = RateData(:,2);
Rates = RateData(:,3) / 100;
RateSpec = intenvset('ValuationDate', '12-31-2004', 'StartDates',StartDates, 'EndDates', EndDates, 'Rates', Rates)
Price = floatbyzero(RateSpec, Spread, Settle, Maturity, 2)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Point Cloud Processing에 대해 자세히 알아보기

제품


릴리스

R14SP2

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by