why does this code return that my variable A is undefined when i run it? how can i change this?

function f=MSP_Asgn4_Q1_27012653(D,n,X)
if X==A
P=D*(1+(1.5/100)).^n;
end

1 Kommentar

"why does this code return that my variable A is undefined when i run it?"_
Becaues you did not define A anywhere. Where is A defined? Nowhere.
"how can i change this?"
Define A before using it.

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

Weitere Antworten (0)

Kategorien

Mehr zu MATLAB finden Sie in Hilfe-Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by