Calculation mid point between two points

조회 수: 9 (최근 30일)
qasim zia
qasim zia 2015년 9월 24일
편집: Walter Roberson 2015년 9월 24일
I have the following code.
s=pi/180; %to make radians.
i=1:100; %for 100 data points
t=3.6*s*i; %360 degree in to radians
x=30*cos(t); %parametric equation
y=15*sin(t); %parametric equation
plot(x,y)
it calculates 100 points on a ellipse using parametric equations. I need help storing each point and calculating the distance of that point from the next point and measuring midpoint of that line (connecting two consecutive points).

답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by