SOLVE USING MATLAB
10. Create an 1D array called y10 of size 1 8 which contains numbers of your choice (not random, but entered manually by yourself). Write one line of code to replace the values in the array at even indices with those at the odd indices (e.g., y(2) should be replaced by y(1), y(4) by y(3), etc).
14. Create a 2D array y14 of size 5 4 that contains numbers of your choice (not random, but entered manually by yourself). Write one line of code to swap the upper left 2 2 block of this array with its lower right 2 2 block.