Effacer les filtres
Effacer les filtres

Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

plot lines with specific cordinates

1 vue (au cours des 30 derniers jours)
Rozanna Pas
Rozanna Pas le 25 Juin 2018
Clôturé : Rozanna Pas le 25 Juin 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?

Réponses (1)

KSSV
KSSV le 25 Juin 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

Cette question est clôturée.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by