How to generate random points

I need help with generating random points and plot it onto my binary image (black and white).

2 件のコメント

James Tursa
James Tursa 2019 年 1 月 31 日
Could you be more specific?
Azmin Alias
Azmin Alias 2019 年 1 月 31 日
Im trying to estimate an area using Monte Carlo Simulation from an image I've extracted using GeoChart. I've also changed the image to grayscale in order to get a white shade for my point of interest. But I seem to struggle on how to generate random points to be plotted onto my image.

サインインしてコメントする。

回答 (2 件)

Ollie A
Ollie A 2019 年 1 月 31 日

0 投票

R = randi([0 1], 1000);
imshow(R);
Is this what you're looking for?
Siena Nason
Siena Nason 2019 年 9 月 26 日

0 投票

R = randi([0 1], 1000);
imshow(R);

カテゴリ

ヘルプ センター および File ExchangeLinear Algebra についてさらに検索

質問済み:

2019 年 1 月 31 日

回答済み:

2019 年 9 月 26 日

Community Treasure Hunt

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

Start Hunting!

Translated by