how can i plot a direction for points
Ältere Kommentare anzeigen

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

Antworten (1)
madhan ravi
am 4 Nov. 2018
Bearbeitet: madhan ravi
am 4 Nov. 2018
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 Kommentare
abdelmoneim mohamed
am 4 Nov. 2018
madhan ravi
am 4 Nov. 2018
Bearbeitet: madhan ravi
am 4 Nov. 2018
Kategorien
Mehr zu Annotations finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
