%% Compute an Amortization Schedule from Mortgage Pools
% Given mortgage pools with the following characteristics, compute an amortization schedule.

OriginalBalance = 400000000;
CouponRate = 0.08125;
Term = [357; 355]; % Three- and five-month old mortgage pools.

[Balance, Interest, Payment, Principal] = mbsnoprepay(OriginalBalance, CouponRate, Term)

% Copyright 2018 The MathWorks, Inc.