switch function that does not work
Mostra commenti meno recenti
What is wrong here:
This is my text:
function grade=switchletgrade1(quiz)
if quiz<0 ||quiz>4
grade='X'
else switch quiz
case 3
grade='B'
case 4
grade='A'
otherwise
grade='C'
end
end
end
Risposta accettata
Più risposte (1)
Tor Fredrik Hove
il 15 Ott 2011
0 voti
Categorie
Scopri di più su Startup and Shutdown in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!