|
|
| File Information |
| Description |
This MATLAB(R) function computes the monthly payment and optionally generates an HTML representation of the mortgage amortization schedule.
The function takes four input arguments:
1. The amount borrowed (dollars)
2. The annual percentage rate (percent per year)
3. The time to maturity (years)
4. A boolean flag indicating whether to generate the HTML Report
The first input argument is required, while the other three are optional (see "Syntax" below).
The function returns one output argument: the monthly payment (in dollars per month) required to pay back the loan.
Syntax:
payment = mortgage(borrowed,apr,ttm,doReport);
payment = mortgage(borrowed,apr,ttm);
payment = mortgage(borrowed,apr);
payment = mortgage(borrowed);
The ZIP file contains two M-functions:
1. mortgage.m is the function that computes the monthly payment and amortization schedule.
2. comma.m is an external utility function that converts a numeric input argument to a comma-formatted string. For more information, please type
>> help comma
at the MATLAB Command Prompt. |
| MATLAB release |
MATLAB 7.7 (R2008b)
|
| Zip File Content |
|
| Other Files |
comma.m, license.txt, mortgage.m
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 01 Jul 2009 |
Description Only: Updating description field to include Registered Trademark symbol on the word "MATLAB". |
|
MATLAB Central Terms of Use
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for
all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content.
Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available
via MATLAB Central.
Read the complete Terms prior to use.
Contact us at files@mathworks.com