I'm writing a code to calculate investmenet after a certain amount of time, using the equation attached. (I've assumed Po is X in the code)
When I run the code, I get the error shown

 Akzeptierte Antwort

VBBV
VBBV am 14 Apr. 2021

1 Stimme

%if true
P = X*(1+r/100).^t
Change this line by adding operators

Weitere Antworten (1)

David Hill
David Hill am 14 Apr. 2021

1 Stimme

No reason for global variables. Problem is equation
P=X*(1+r/100)^t;%need X*

Kategorien

Mehr zu Software Development Tools finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 14 Apr. 2021

Kommentiert:

am 14 Apr. 2021

Community Treasure Hunt

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

Start Hunting!

Translated by