find intersection of graph

23 次查看(过去 30 天)
NA
NA 2018-12-11
编辑: madhan ravi 2018-12-12
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?

采纳的回答

madhan ravi
madhan ravi 2018-12-11
  4 个评论
NA
NA 2018-12-12
编辑:madhan ravi 2018-12-12
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 2018-12-12
编辑:madhan ravi 2018-12-12
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

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Graph and Network Algorithms 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by