Why is my variable undefined?
Afficher commentaires plus anciens
Could someone tell me why 'g' is undefined?
Réponse acceptée
Plus de réponses (1)
Rik
le 27 Avr 2018
Not all options for your if-structure will result in defining g
if age<1
a=.4;
else
if (age>=1) && (age<3)
a=.6;
elseif (age>=3) && (age<5)
a=.7;
elseif (age>=5) && (age<10)
a=.5;
else
%only here g will be defined
1 commentaire
Ben Nelson
le 27 Avr 2018
Catégories
En savoir plus sur Testing Frameworks dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!