필터 지우기
필터 지우기

how to draw multiple dots in between two vertical lines?

조회 수: 1 (최근 30일)
swati mane
swati mane 2015년 7월 10일
댓글: swati mane 2015년 7월 10일
Hello I want to draw multiple dots in between two vertical lines? Will you please help me?

답변 (1개)

Azzi Abdelmalek
Azzi Abdelmalek 2015년 7월 10일
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
swati mane
swati mane 2015년 7월 10일
Thank you very much for your help how to draw multiple moving dots? will you please help me?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 NaNs에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by