필터 지우기
필터 지우기

How to generate random points

조회 수: 9 (최근 30일)
Azmin Alias
Azmin Alias 2019년 1월 31일
답변: Siena Nason 2019년 9월 26일
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일
R = randi([0 1], 1000);
imshow(R);
Is this what you're looking for?

Siena Nason
Siena Nason 2019년 9월 26일
R = randi([0 1], 1000);
imshow(R);

Community Treasure Hunt

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

Start Hunting!

Translated by