function test_val = test_resize1 % Check a normal resize in 2D a = []; a = [1,2;3,4]; a(3,3) = 1; test_val = all(a == [1,2,0;3,4,0;0,0,1]);