Project #3 - Topographical Map Introduction You are working for a surveying and environmental engineering firm that has geographic data for many different areas. They want you to write a program that takes matrices of this geographic data in, and returns an image of a topographical map. Procedure Your function should take two inputs: Altitude an m x n matrix of altitude data. Each element is 10 kilometers from the points above, below, rightward, and leftward from it. Water: an m x n matrix that only has elements with values 1 and 0. This matrix has information for whether the measurement location was covered in water (1) or dry land (0). And return two outputs: Topograph: an mxn x 3 uint8 color image. Topograph should be color coded in the following way: o Blue for any data point that is covered in water Black for any data point that is below sea level (Elevation below 0) o Green for any data point above 0 and up to 1000 meters o Yellow for any data point above 1000 and up to 2000 meters o Orange for any data point above 2000 and up to 3000 meters o Red for any data point above 3000 and up to 4000 meters o White for any data point above 4000 and up to 4500 meters Cyan for any data point above 4500 meters o Additionally, you should make the highest point in your topographical map magenta the lowest point on your topographical map that is not under water purple. You can assume that there won't be two highest and lowest points. O O low HighDist: The distance between the low and high points on land in this data. Again, each matrix element is 10 kilometers from the elements above, below, rightward, and leftward from it. You can use the Pythagorean Theorem to solve for distance. Formatting Your Image Make sure you familiarize yourself with how to display your image using the image command, and how to copy and paste an image from a figure window, prior to working on the report for this project.
RG IG R$ Ghcem green tose GB RUB RGB-955 va 128 Color vel for Your De (Tales from both castellishe blom2010-12 leita The above color wheel describes all of the colors and more that you need for this project. The letters. B. and represent red, green, and we values respectively. A lowercase letter means that the color in question has a 128. As uppercase letter was the color in question has a 25% value. If the color doesn't have an upper or lowercase value, it is not present. For example, purple is 12 for red for green and 235 forblue. Note that white is RGB and black is for all color Example 1: Let's make a simple set of sest data to test cu code: alt-[-10-10 500 1500 2500 3500 4500 3300 5000 5000 50001 water 100 000 0001 In this example, we expect an image that is hlue purple black green yellow orange red white magen syan can can
In this example, we expect an image di The purple black green yellow range red while man cyan can can 0.5 + 1.5 2 25 3 3.5 0.5 + 15 2 25 3.5 Ant a distance between wat surple and magenta points of (3-1082030-2012)-22.361 km 22.361 meter Example Let's create rundem matrices for altitude and water wing the good alt=movmean (randin (50, 503-6000-1000,52 att - movean (alt.) watet - alt