function test_val = test_resize3 % Check a row-vector -> vector resize a = [1 2]; a(3) = 1; test_val = all(a == [1,2,1]);