how can I find distance between one base station and all the users separately?
2 次查看(过去 30 天)
显示 更早的评论
for example if i have the base station at origion , and all the users are placed randomly distributed according to poisson distribution in two dimentional space ,then how can i find the distance of each user to base station .
0 个评论
采纳的回答
Rik
2023-1-18
You can use the hypot function to calculate the Pythagorean distance. Check the documentation to see if it allows array inputs. If not, you only need sqrt, an addition, and two element-wise squares.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Hypothesis Tests 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!