Generate cash flows for scheduled collateralized mortgage obligation (CMO) using PAC or TAC model

`[Balance,Principal,Interest] = cmoschedcf(PrincipalPayments,TranchePrincipalsTrancheCoupons,BalanceSchedule)`

`[`

generates cash flows for a scheduled CMO, such as the planned amortization class
(PAC) or targeted amortization class (TAC), given the underlying mortgage pool
payments (or payments from another CMO tranche). The output
`Balance`

,`Principal`

,`Interest`

] = cmoschedcf(`PrincipalPayments`

,`TranchePrincipals`

`TrancheCoupons`

,`BalanceSchedule`

)`Balances`

, `Principal`

, and
`Interest`

from this function can be used as input into
`cmoseqcf`

to further divide the
PAC, TAC, or support dividing a tranche into sequential tranches.

[1] Hayre, Lakhbir, ed.
*Salomon Smith Barney Guide to Mortgage-Backed and Asset-Backed
Securities.* John Wiley and Sons, New York, 2001.

[2] Lyuu, Yuh-Dah.
*Financial Engineering and Computation.* Cambridge University
Press, 2004.