%% Find Coupon Payments Remaining Until Maturity for Different Maturity Dates
% This example shows how to find the coupon payments remaining until maturity, given three coupon bonds with different maturity dates and the same default arguments.

Maturity = ['30 Sep 2000'; '31 Oct 2001'; '30 Nov 2002'];
NumCouponsRemaining = cpncount('14 Sep 1997', Maturity)

% Copyright 2015 The MathWorks, Inc.