How to generate random points

21 visualizaciones (últimos 30 días)
Azmin Alias
Azmin Alias el 31 de En. de 2019
Respondida: Siena Nason el 26 de Sept. de 2019
I need help with generating random points and plot it onto my binary image (black and white).
  2 comentarios
James Tursa
James Tursa el 31 de En. de 2019
Could you be more specific?
Azmin Alias
Azmin Alias el 31 de En. de 2019
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.

Iniciar sesión para comentar.

Respuestas (2)

Ollie A
Ollie A el 31 de En. de 2019
R = randi([0 1], 1000);
imshow(R);
Is this what you're looking for?

Siena Nason
Siena Nason el 26 de Sept. de 2019
R = randi([0 1], 1000);
imshow(R);

Categorías

Más información sobre Convert Image Type en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by