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 件のコメント

abdelmoneim mohamed
abdelmoneim mohamed 2018 年 11 月 4 日
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 日

サインインしてコメントする。

カテゴリ

タグ

質問済み:

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