Rapidly find the points lying inside a cut-off radius

版本 2.0 (1.9 KB) 作者: sunil anandatheertha
This completely vectorized code helps you find all points within a cut-off radius from given point.
1.1K 次下载
更新时间 2020/6/11

查看许可证

Say, in applications such as Molecular Dynamics, you may be required to find out which atoms lye within a cut-off radius (for example, the Van-der Waals distance of interaction, or say that interaction distance for the Tersoff Brenner Potential, etc..).

In any other applications, you may be required to identify a set of points lying within a circle.

This code helps you do that job, very fast. This code is completely vectorized and is fast.

Please try the code testrun.m to know how to use this code. Thank you.

引用格式

sunil anandatheertha (2024). Rapidly find the points lying inside a cut-off radius (https://www.mathworks.com/matlabcentral/fileexchange/35791-rapidly-find-the-points-lying-inside-a-cut-off-radius), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2016a
兼容 R2016a 到 R2020a 的版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Chemistry 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
2.0

Faster

1.0.0.0