find intersection of graph

I have this graph like this
plot ([0,1,1,0,0,1,0.5,0],[0,1,0,1,0,0,1.5,0],'-')
how can I find all intersections in this graph?

 Respuesta aceptada

madhan ravi
madhan ravi el 11 de Dic. de 2018

0 votos

4 comentarios

NA
NA el 12 de Dic. de 2018
It is not giving me any intersection
madhan ravi
madhan ravi el 12 de Dic. de 2018
upload the code that you tried
NA
NA el 12 de Dic. de 2018
Editada: madhan ravi el 12 de Dic. de 2018
x1=[0,1,1,0,0,1,0.5,0]
y1=[0,1,0,1,0,0,1.5,0]
P = InterX(x1,y1);
plot(x1,y1,P,'ro')
madhan ravi
madhan ravi el 12 de Dic. de 2018
Editada: madhan ravi el 12 de Dic. de 2018
x1=[0,1,1,0,0,1,0.5,0]
y1=[0,1,0,1,0,0,1.5,0]
P = InterX([x1;y1]); % P is the intersection of curves
plot(x1,y1,P(1,:),P(2,:),'ro')
Screen Shot 2018-12-12 at 8.49.28 AM.png

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Graph and Network Algorithms en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

NA
el 11 de Dic. de 2018

Editada:

el 12 de Dic. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by