how to calculate distance between one and other points?
Show older comments
I have 6 sets of data (x,y,z,grid_x,grid_y,grid_z), xyz have 100 points and it is detemine by me randomly, grid_xyz is the detemining the grid, from(0,0) to (100,100) with 2m intervals, which means grid_x = (0,2,4,6,..), grid_y= (0,2,4,6,..), I need to calculate the distance between (x,y) to (grid_x,grid_y), that is calculate each (grid_x,grid_y) to all the point (x,y), for instance (0,0) to (x1,y1) (x2,y2) (x3,y3)...(x100,y100), then (0,2) to (x1,y1) (x2,y2) (x3,y3)...(x100,y100) and so on. how to calculate this? thank you so much!
Accepted Answer
More Answers (0)
Categories
Find more on Creating and Concatenating Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!