%% Find the Accrued Interest on a Certificate of Deposit
% This example shows how to compute the accrued interest due, given a certificate of deposit with the following characteristics.

CouponRate      =  0.05;
Settle          =  '02-Jan-02';
Maturity        =  '31-Mar-02';
IssueDate       =  '1-Oct-01';

AccrInt = cdai(CouponRate, Settle, Maturity, IssueDate)

% Copyright 2015 The MathWorks, Inc.