フィルターのクリア

Randomly generated coordinates within arbitrary region

2 ビュー (過去 30 日間)
Joppy
Joppy 2018 年 2 月 14 日
回答済み: KSSV 2018 年 2 月 14 日
Is there any particularly convenient way to generate (randomly) coordinates within some arbitrary bounded region in the plane? Perhaps via the vertices of the boundary. Or is it better to first define the region numerically and then randomly select values from the grid?

採用された回答

KSSV
KSSV 2018 年 2 月 14 日
Generate the boundary and then create random numbers. You can google or search in mathworks you will get many useful discussions.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeRandom Number Generation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by