Question: Please write a MATLAB programme with the following instructions: -it should be able to load 2 sets of location data, namely set_i and set_k into

Please write a MATLAB programme with the following instructions:

-it should be able to load 2 sets of location data, namely set_i and set_k into the programme

-set_i and set_k are location data which consists of latitudes and longitudes of certain locations

-there are m pairs of data in set_i and n pairs of data in set_k, for each m, calculate the distance to each n (the distance between i_1 and k_1, k_2, ..., k_n), repeat this for all data in set_i until i_m

-find the nearest k for each i; meaning that only the minimum distance calculated in the last step should be stored.

-the result can be stored in an array

Many thanks

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!