Borrar filtros
Borrar filtros

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

1 visualización (últimos 30 días)
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.

Respuestas (1)

KSSV
KSSV el 22 de Jun. de 2018
Editada: KSSV el 22 de Jun. de 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')

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by