Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Use App Designer to Create a Simple Calculator App

This example shows how to create a simple mortgage amortization calculator app. It includes the following components to collect user input, calculate monthly payments, and plot the principal and interest amounts over time:

  • Numeric edit fields — allow users to enter values for the loan amount, interest rate, and loan period. MATLAB® 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 — executes a callback function to calculate the monthly payment value.

  • Axes — used to plot the principal and interest amounts versus mortgage installment.

Was this topic helpful?