function test_val = test_resize2 % Check a scalar -> vector resize a = 1; a(3) = 1; test_val = all(a == [1,0,1]);