MATLAB: Hello, any one help me, How to write this

matlab appdesigner

Hi guys. I should create an application for calculates the nominal interest rate.
i = nominal interest rate P = initial investment T = future value N = number of compounding periods per year Y = number of years App looks like this:
Can you help me for writing code?
20190507_214511.jpg

Best Answer

  • Try this:
    function cal_butButtonPushed(app, event)
    P=app.p_val;
    T=app.t_val;
    N=app.n_val;
    Y=app.y_val;
    I=N*((T/P)^(1/(N*Y))) - N;
    app.i_val=I;
    end