function test_val = test_resize4 % Check a column-vector -> vector resize a = [1;2]; a(3) = 1; test_val = all(a == [1;2;1]);