Trying to create a callback function on App Designer.

3 views (last 30 days)
Hello,
I can be considered as newbie for Matlab and am trying to create an application that calculates the nominal interest rate "i".
i = N*((T/P)^(1/(N*Y))) - N where
i = nominal interest rate
P = initial investment
T = future value
N = number of compounding periods per year
Y = number of years
The basic look of my application as following:
app.JPG
I want this application to execute the function that I gave above when you click the calculate button. In order to to that, I right click the calculate button and after that click callback then add the function up there. However, I do not know how to display it on the bottom field and I get an error when I click the calculate button as following, you can also see my callback function there: app_error.JPG
As a result, what is my mistake and what should I do to create this callback function properly and display its result on the "i" field?
Appreciated for your help.

Answers (0)

Categories

Find more on Develop Apps Using App Designer in Help Center and File Exchange

Products


Release

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!