get nearest using 2 vec

find nearest destination point from source point(source vector)
3 Downloads
Updated Wed, 21 Oct 2020 20:46:01 +0000

View License

%%calling script
% find nearst dest point from source point(source vector)
% sourcPos.x=randi([-100,100],1,100);
% sourcPos.y=randi([-100,100],1,100);

%
% destPos.x=randi([-100,100],1,30);
% destPos.y=randi([-100,100],1,30);

% [unDestInd, gridDist,selctedDest,selctedDict]=getNearstDest2D(destPos, sourcPos,1,1);

Cite As

moussa hasanzadeh (2024). get nearest using 2 vec (https://www.mathworks.com/matlabcentral/fileexchange/81568-get-nearest-using-2-vec), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2020b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0