function c = switch_test(a) switch(a) case {'lima beans','root beer'} c = 'food'; case {'red','green','blue'} c = 'color'; otherwise c = 'not sure'; end