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

1 view (last 30 days)
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.

Answers (1)

KSSV
KSSV on 22 Jun 2018
Edited: KSSV on 22 Jun 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!