% Test the if statement function test_val = test_if1 a = 1; test_val = 0; if (a == 1) test_val = 1; end