Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
How to label edges (Euclidean distance between node coordinates) between each pair of nodes as shown in figure???? For example Euclidean distance between node 1 and node 2 ?? node 1 havig coordinates as (1.4503,2.5379) and node 2 (2.1306,1.4063) ?
조회 수: 1 (최근 30일)
이전 댓글 표시
답변 (1개)
KSSV
2017년 1월 13일
coor = rand(3,2) ;
coor = [coor ;coor(1,:)] ;
plot(coor(:,1),coor(:,2)) ;
hold on
x = coor(1:3,1) ; y = coor(1:3,2) ;
str = strcat(num2str(x),',',num2str(y));
text(x,y,str)
read about text
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



