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일

0 개 추천

댓글 수: 4

NA
NA 2018년 12월 12일
It is not giving me any intersection
madhan ravi
madhan ravi 2018년 12월 12일
upload the code that you tried
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개)

카테고리

도움말 센터File Exchange에서 Graph and Network Algorithms에 대해 자세히 알아보기

질문:

NA
2018년 12월 11일

편집:

2018년 12월 12일

Community Treasure Hunt

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

Start Hunting!

Translated by