필터 지우기
필터 지우기

how to sort Indices of a circle in a 3d plane clockwise?

조회 수: 4 (최근 30일)
ELI
ELI 2014년 1월 28일
댓글: ELI 2014년 1월 28일
Hi,
I have a sort of dots circle in a 3d plane and I want all the indices of the dots to be arranged clockwise. the indices of the dots are attached. Do you know how to do that?
  댓글 수: 2
Roger Stafford
Roger Stafford 2014년 1월 28일
In three dimensions the notion of clockwise versus counterclockwise loses its meaning. The notion of clockwise rotation is strictly a two-dimensional concept. It has the same indeterminacy as trying to distinguish between the two sides of an arbitrary three-dimensional plane. Which side is the "plus" side and which is the "minus" side?
Mischa Kim
Mischa Kim 2014년 1월 28일
Good point, Roger. Mathematically absolutely correct. From an engineering perspective I would argue that there is a somewhat "obvious" (and therefore in that same sense mathematically not necessarily definable), acceptable solution to the problem.

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

채택된 답변

Mischa Kim
Mischa Kim 2014년 1월 28일
편집: Mischa Kim 2014년 1월 28일
From the x and y data (from ind.mat) compute the polar angles of the dots using atan2. Add the polar angles as the fourth row to the matrix. Then use the sort command to sort the dots in descending order (in terms of angles).
  댓글 수: 1
ELI
ELI 2014년 1월 28일
Works grate except that it's needed to subtract the mean of x from x and the mean of y from y in order to set the center of the circle at the origin.

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

추가 답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by