I have a file M1 containing a matrix from this form, for example
1 10 452 32 563 12 504 28 67
The second and third column are x and y coordinates of nodes and the first column is the id of the node. And another one M2 containing another matrix, for example
10 5030 60
These columns are coordinates of, let's say, reference nodes
What I want to do is to change the coordinates in the first file to the closest one to them in the second file. So my result, will be something like this:
1 10 502 30 603 10 504 30 60
Any hints or ideas how to do it?
Best Answer