%% Compute the Payment for a Loan or Annuity With an Odd First Period
% This example shows how to return the payment for a loan or annuity with an odd first period. For example, consider a two-year loan for $4000 that has an annual interest rate of 11% and the first payment will be made in 36 days.

Payment = payodd(0.11/12, 24, 4000, 0, 36)

% Copyright 2015 The MathWorks, Inc.