Effacer les filtres
Effacer les filtres

Need help in making line between Point A and 10-Point (1-10), if i have their locations

1 vue (au cours des 30 derniers jours)
Hi, Need help in making line between Point A and 10-Point (1-10), if i have their locations Reference picture are attach. Figure 1 represent Point A and 10-Point, while Figure 2 represent that i want to make line between Point A and 10-Point.

Réponses (1)

KSSV
KSSV le 22 Juin 2018
Modifié(e) : KSSV le 22 Juin 2018
S = [0 0] ;
N = 10 ;
E = rand(N,2) ;
figure
hold on
S = repmat(S,N,1) ;
x = [S(:,1) E(:,1)] ; y = [S(:,2) E(:,2)] ;
plot(x',y')

Community Treasure Hunt

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

Start Hunting!

Translated by