coords=zeros(n,2); for i=1:n coords(i,1)=rand*1000 coords(i,2)=rand*1000 end z=coords(:,1); c=coords(:,2); figure(1) plot(z,c,'-*') i need the final figure be like this one

답변 (1개)

madhan ravi
madhan ravi 2018년 11월 4일
편집: madhan ravi 2018년 11월 4일

0 개 추천

coords=zeros(10,2);
for i=1:10
coords(i,1)=rand*1000
coords(i,2)=rand*1000
end
z=coords(:,1); c=coords(:,2); figure(1)
quiver(z,c)

댓글 수: 2

thanks a lot but i need the final figure be like this one
madhan ravi
madhan ravi 2018년 11월 4일
편집: madhan ravi 2018년 11월 4일

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

카테고리

도움말 센터File Exchange에서 Annotations에 대해 자세히 알아보기

태그

질문:

2018년 11월 4일

편집:

2018년 11월 4일

Community Treasure Hunt

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

Start Hunting!

Translated by