Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x = 6;
- switch(x)
- case num2cell(1:5)
- disp('1-5');
- case num2cell(6:10)
- disp('6-10');
- otherwise
- disp('otherwise')
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement