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 Comment

"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.

Sign in to comment.

More Answers (0)

Categories

Tags

Community Treasure Hunt

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

Start Hunting!