%% App that Calculates and Plots Data Based on Numerical Input
% This app shows how to use numeric edit fields to create a simple 
% mortgage amortization calculator. It includes the following components to 
% collect user input, calculate monthly payments, and plot the principal 
% and interest amounts over time:
% 
% * Numeric edit fields &mdash; allow users to enter values for the loan amount, interest 
% rate, and loan period. MATLAB&reg; automatically checks to make sure the values 
% are numeric and within the range specified by the app. A fourth numeric edit 
% field displays the resulting monthly payment amount based on the inputs.
% * Push button &mdash; executes a callback function to calculate the monthly payment 
% value.
% * Axes &mdash; used to plot the principal and interest amounts versus
% mortgage installment. 
% 
% <<../mortgage_screenshot.png>> 

% Copyright 2015 The MathWorks, Inc.