www.gusucode.com > fininst 案例源码程序 matlab代码 > fininst/CalculatethePrincipalBalanceScheduleforaCMOPACBondExample.m
%% Calculate the Principal Balance Schedule for a CMO PAC Bond % Define the mortgage pool under consideration and generate a principal % balance schedule for planned amortization class (PAC) bonds using two % bands of PSA speeds. % Copyright 2015 The MathWorks, Inc. %% Principal = 128687000; GrossRate = 0.0648; OriginalTerm = 360; TermRemaining = 325; PrepaySpeed = [300 525]; PacPrincipal = 100250000; [BalanceSchedule, InitialBalance] ... = cmosched(Principal, GrossRate, OriginalTerm, TermRemaining, ... PrepaySpeed, PacPrincipal)