필터 지우기
필터 지우기

how can i plot a circle intersect with a line

조회 수: 2 (최근 30일)
amro faira
amro faira 2015년 4월 24일
편집: Roger Stafford 2015년 4월 25일
i want to write a program that can help to plot a circle intersect with a line
  댓글 수: 3
amro faira
amro faira 2015년 4월 25일
xc=6
xc =
6
yc=5
yc =
5
r=2
r =
2
theta=90
theta =
90
and for the line
xo=6
xo =
6
yo=7
yo =
7
xf=4
xf =
4
yf=8
yf =
8
amro faira
amro faira 2015년 4월 25일
i already have the parametric of circle and line i just need a formula to insert the input to plot the intersect or what should i do
for t=0:0.001:1 x(i,1)=xo+(xf-xo)*t; y(i,1)=yo+(yf-xo)*t; i=i+1; ---------------------------------------- for theta = 0:pi/100:2*pi i = i+1; x(i) =xc+r*cos(theta);
y(i) = yc+r*sin(theta);

댓글을 달려면 로그인하십시오.

채택된 답변

Stalin Samuel
Stalin Samuel 2015년 4월 25일
  댓글 수: 1
Roger Stafford
Roger Stafford 2015년 4월 25일
편집: Roger Stafford 2015년 4월 25일
@Stalin - This function, 'circcirc', which you give as an answer, is for finding the intersections between two circles, not between a circle and a straight line! I think you meant to reference this function:
http://www.mathworks.com/help/map/ref/linecirc.html

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Vector Fields에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by