一个关于matlab的switch语句的错误,求解

想用switch语句做一个简单的数值区间判断,求问大神哪里导致结果出错了
num=input('Enter the piont:')
switch (num)
case {90:1:100}
disp ('the mark is 优')
case {80:1:89}
disp ('the mark is 良')
case {70:1:79}
disp ('the mark is 中')
case {60:1:69}
disp ('the mark is 及格')
case {0:1:59}
disp ('the mark is 不及格')
otherwise
disp('a wrong piont')
end
输出结果:Enter the piont:95

num =

95

a wrong piont

对不起,理解错了。

正确的写法应该是:

switch num
case num2cell(90:100)
disp ('the mark is 优')
.......
end

http://www.yiibai.com/matlab/switch_statement_matlab.html

case {90:1:100}
应为:

 case {90:100}