switch function that does not work
Show older comments
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
Accepted Answer
More Answers (1)
Tor Fredrik Hove
on 15 Oct 2011
0 votes
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!