Code with function file not working

7 vues (au cours des 30 derniers jours)
JaffaCakes
JaffaCakes le 14 Avr 2021
Commenté : JaffaCakes le 14 Avr 2021
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

Réponse acceptée

VBBV
VBBV le 14 Avr 2021
%if true
P = X*(1+r/100).^t
Change this line by adding operators
  1 commentaire
JaffaCakes
JaffaCakes le 14 Avr 2021
Thanks I hadn't noticed this

Connectez-vous pour commenter.

Plus de réponses (1)

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

Catégories

En savoir plus sur Software Development Tools dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by