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 个评论

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

请先登录,再进行评论。

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 MATLAB 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by