% Test the if-else statement function test_val = test_if2 a = 1; test_val = 0; if (a == 0) test_val = 0; else test_val = 1; end