フィルターのクリア

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