Concatenate the first half (12 points), with the whole of the maze shifted by (60,20) and then concatenate the last half another 12 points) to close up the four loops. Concatenate a date character vector, a string date, and a datetime into a single row of dates. Your maze has already doubled and now has 24 points. This MATLAB function concatenates B horizontally to the end of A when A and B have compatible sizes (the lengths of the dimensions match except in the. You will need to make two changes to the above code.
Now double the loop again to get FOUR loops. Assuming you have entered the first loop in the previous question, you can get both loops all at once using: % Insert second Loop for the PACMAN maze x maze = ( x maze(1:6) x maze+30 x maze (7:12)] Y_maze = b. The second loop is a copy of the first loop but translated by 35 units in the x-direction and 10 units in the y-direction. We will need to insert the new loop between the first six and the last six points. Notice the first six points traverse your loop in the counter- clockwise direction, while the last six traverse the loop clockwise, and complete it.
Question 7: The Pacman Maze with Four Loops a. %initial loop for maze X_maze = y_maze = y_maze = ( y_maze (1:6) y_maze+10 y_maze (7:12)] %fill(x_maze, y_maze, 'cyan') %double first 2 loops