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

1 回表示 (過去 30 日間)
M Shujah Islam Sameem
M Shujah Islam Sameem 2018 年 6 月 22 日
編集済み: KSSV 2018 年 6 月 22 日
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.

回答 (1 件)

KSSV
KSSV 2018 年 6 月 22 日
編集済み: KSSV 2018 年 6 月 22 日
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')

カテゴリ

Help Center および File ExchangeInteractive Control and Callbacks についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by