| Financial Toolbox™ | ![]() |
[TFactors, F] = date2time(Settle, Maturity, Compounding, Basis, EndMonthRule)
Settle | Settlement date. A vector of serial date numbers or date strings. |
Maturity | A vector of serial maturity dates. |
Compounding | Scalar value representing the rate at which the input zero rates were compounded when annualized. This argument determines the formula for the discount factors:
|
Basis | (Optional) Day-count basis of the instrument. A vector of integers.
|
EndMonthRule | (Optional) End-of-month rule. A vector. This rule applies only when Maturity is an end-of-month date for a month having 30 or fewer days. 0 = ignore rule, meaning that a bond's coupon payment date is always the same numerical day of the month. 1 = set rule on (default), meaning that a bond's coupon payment date is always the last actual day of the month. |
[TFactors, F] = date2time(Settle, Maturity, Compounding, Basis, EndMonthRule) computes time factors appropriate to compounded rate quotes between the settlement and maturity dates.
TFactors is a vector of time factors.
F is a scalar of related compounding frequencies.
date2time is the inverse of time2date.
cftimes, disc2rate, rate2disc, time2date
![]() | cur2str | dateaxis | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |