matlab - Calculating distance of all the points storing in one array with all other points of second array -


i need calulate distance of points stored in array size <17642065x2 double> points of other array size <273839x2 double>. points stored in both array in form of:

a = 341 45 456 32 987 10 4003 332 ... ... ... ... .... ....

b = 344 67 786 90 1234 47 3456 222 ... ... ... ... .... ....

i have calculate distance points. example algorithm calculates distnace between (341,45) , (344,67), (341,45) , (780,90), (341,45) , (1234,47), (341,45) , (3456,222) (456 32) , (344,67) , on. appreciated

you can use matlab's builtin pdist2 function:

d = pdist2(a,b); 

Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -