I have matrix F (x,y coordinates), which is 1000*2 matrix. i calculated distances between coordinates using PDIST2 command. i want coordinates which are at distance greater than 22?
Ältere Kommentare anzeigen
F = [x5;y5]'; % x,y coordinates
distances = pdist2(F,F); %% claculating distances between every coordinate to all other coodinates
closepoints = distances > 22; %% checking the condition
result = find(closepoints==1); %%
based on the logical condition how to get the coordinates (x,y) which are grater than 22
4 Kommentare
madhan ravi
am 4 Feb. 2019
distances(distances > 22)
M.Prasanna kumar
am 4 Feb. 2019
madhan ravi
am 4 Feb. 2019
So you want to obtain the x and y coordinates when distance is greater than 22 ?
M.Prasanna kumar
am 4 Feb. 2019
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Surface and Mesh Plots finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
