How can I join points with line
Mostrar comentarios más antiguos
I've 4 points. I want to join first two of the with a line and then second two with another line
My desired picture is given below

I can draw the first graph with maker. but but I want to join these points.
Thanks in advance
Respuesta aceptada
Más respuestas (1)
darova
el 13 de En. de 2020
Try to reshape data
a1 = reshape(a,[],2);
b1 = reshape(b,[],2);
plot(a1,b1)
% plot(a1',b1') % another variant
Categorías
Más información sobre Directed Graphs en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!