switch function that does not work
Ältere Kommentare anzeigen
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
Akzeptierte Antwort
Weitere Antworten (1)
Tor Fredrik Hove
am 15 Okt. 2011
0 Stimmen
Kategorien
Mehr zu Startup and Shutdown finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!