function c = if_test(a) if (a == 1) c = 'one'; elseif (a==2) c = 'two'; elseif (a==3) c = 'three'; else c = 'something else'; end