% Test the switch statement with a scalar argument
function test_val = test_switch3

test_val = 0;
x = 1.0f + i;
z = 1.0 + i;
switch x
case 1
test_val = 0;
case i
test_val = 0;
case z
test_val = 1;
case 'astring'
test_val = 0;
otherwise
test_val = 0;
end
