Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

plot lines with specific cordinates

1 Ansicht (letzte 30 Tage)
Rozanna Pas
Rozanna Pas am 25 Jun. 2018
Geschlossen: Rozanna Pas am 25 Jun. 2018
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?

Antworten (1)

KSSV
KSSV am 25 Jun. 2018
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

Diese Frage ist geschlossen.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by