필터 지우기
필터 지우기

Showing points in 2D map.

조회 수: 2 (최근 30일)
Nava  Subedi
Nava Subedi 2018년 10월 15일
편집: Nava Subedi 2018년 10월 18일
How to plot these four points in 2D.
T1 = [0.000, 0.000]; T2 = [67.624, -0.232]; T3 = [66.966, -67.904]; T4 = [-0.494, -67.230];
If these points are in the circumference of a circle, how to find the center and how to move center into (0, 0)?

채택된 답변

Star Strider
Star Strider 2018년 10월 18일
Finding the centre and radius is trivial:
T0 = [T1; T2; T3; T4];
C = mean(T0); % Circle Centre
R = mean(hypot(T0(:,1)-C(1), T0(:,2)-C(2))); % Circle Radius
I leave the rest to you.
  댓글 수: 1
Nava  Subedi
Nava Subedi 2018년 10월 18일
편집: Nava Subedi 2018년 10월 18일
Thank you. I plot them in 2D plane, now I need to label them T1, T2, T3, and T4 on the plot. How to rotate them by certain angle?
Your help will be appreciated

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by