how can I find distance between one base station and all the users separately?

2 ビュー (過去 30 日間)
memoona bibi
memoona bibi 2023 年 1 月 18 日
回答済み: Rik 2023 年 1 月 18 日
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 .

採用された回答

Rik
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 件)

カテゴリ

Help Center および File ExchangeHypothesis Tests についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by