function that does not work
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Why does not this function work:
this is what i wrote:
function grade=onlyundefined(quiz)
if quiz<0 ||quiz>10
grade='X'
end
end
0 Commenti
Risposta accettata
Walter Roberson
il 15 Ott 2011
You stored the function in the file "switchletgrade1.m" . The name of the file needs to match the name of the function.
Also, you will need to define the output for the situation when the "if" does not hold true.
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Workspace Variables and MAT-Files in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!