Borrar filtros
Borrar filtros

how to draw multiple dots in between two vertical lines?

1 visualización (últimos 30 días)
swati mane
swati mane el 10 de Jul. de 2015
Comentada: swati mane el 10 de Jul. de 2015
Hello I want to draw multiple dots in between two vertical lines? Will you please help me?

Respuestas (1)

Azzi Abdelmalek
Azzi Abdelmalek el 10 de Jul. de 2015
x1=[ 1 1 ]
y1=[-1 1 ]
x2=[ 2 2]
y2=[ -1 1]
plot(x1,y1,x2,y2,'linewidth',4)
[ii,jj]=meshgrid(linspace(x1(1),x2(1),20),linspace(y1(1),y1(2),20))
hold on
scatter(ii(:),jj(:),'.')
  1 comentario
swati mane
swati mane el 10 de Jul. de 2015
Thank you very much for your help how to draw multiple moving dots? will you please help me?

Iniciar sesión para comentar.

Categorías

Más información sobre NaNs 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