Hi,
I have a series of touristic trajectories in userTouristicTraj.touristicData.touristicTraj2 (attached); I want compare every pairs of coordinates in the array with the values in the first two columns of Clusters (attached): if there is a corrispondence, I want create a new array that instead the coordinates have the corresponding value in the 4 column of Clusters.
Example
userTouristicTraj(1).touristicData(1).touristicTraj2ans = 38.1153 13.3781 38.1190 13.3742
I search this pairs
(38.1153 13.3781) (38.1190 13.3742)
in Clusters(:,1:2); if I find (38.1153 13.3781), put in userTouristicTraj(1).touristicData(1).traj the corrispondent value in Clusters(:,4) so
userTouristicTraj(1).touristicData(1).traj = (1; 1)
I want to do this for all the values in userTouristicTraj.touristicData.touristicTraj2. Can you help me? I hope the question is clear
Best Answer