%% Compute the Periodic Payment
% This example shows how to compute the periodic payment, given a number of advance payments. For example, the present value of a loan is $1000.00 and it will be paid in full in 12 months. The annual interest rate is 10% and three payments are made at closing time.

Payment = payadv(0.1/12, 12, 1000, 0, 3)

% Copyright 2015 The MathWorks, Inc.