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 comentario

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

Iniciar sesión para comentar.

 Respuesta aceptada

Más respuestas (0)

Categorías

Más información sobre MATLAB en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 3 de Dic. de 2018

Editada:

el 3 de Dic. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by