%% Find Accrued Interest for a Bond Using a datetime Array
% This example shows how to find the accrued interest for a given bond's data using a datetime array.

Fraction = accrfrac(datetime('14-Mar-1997', 'Locale', 'en_US'), ['30-Nov-2000'; '31-Dec-2000'; '31-Jan-2001'], 2, 0,1)

% Copyright 2012 The MathWorks, Inc.