% Problem 4 function result = Problem4() result = core(rand(4,5)); function result = core(x) result = x(2:end-1,2:end-1);