Info

此问题已关闭。 请重新打开它进行编辑或回答。

plot lines with specific cordinates

1 次查看(过去 30 天)
Rozanna Pas
Rozanna Pas 2018-6-25
关闭: Rozanna Pas 2018-6-25
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?

回答(1 个)

KSSV
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

此问题已关闭。

标签

Community Treasure Hunt

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

Start Hunting!

Translated by