Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
plot lines with specific cordinates
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi guys,
I have cordinates of 350 points in Excel and also their id. Actually they are cordinates of my pipes network. For example:
us_node_id: (x)[20000 ,20005,20006,20007,....]
ds_node_id (y) [20005 , 20006,20007, 20010,...]
conduit_length(line length of points):[17, 23, 45, 23,..]
conduit_width (diameter):[500,500,1200, 1200, 300,...]
How can I plot the line between points by considering their length? I don't want connect all of the points to each other, just based on the node_id tables.
Conduit width is the diameter of the pipes. How can I also plot lines with different colors based on their diameter?
댓글 수: 0
답변 (1개)
KSSV
2018년 6월 25일
x = linspace(0,2*pi,100);
y = sin(x);
c = cos(x).^2;
fill([x nan],[y nan],[c nan],'FaceColor','none','EdgeColor','interp')
colorbar
댓글 수: 0
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!