주요 콘텐츠

polar

(권장되지 않음) 극좌표 플롯

polar는 권장되지 않습니다. polarplot을 대신 사용하십시오. 코드 업데이트에 대한 자세한 내용은 버전 내역 항목을 참조하십시오.

설명

polar(theta,rho)는 극좌표에 선을 플로팅합니다. 여기서 theta는 각도(단위: 라디안)를, rho는 각 점의 반지름 값을 나타냅니다. thetarho는 같은 크기여야 합니다.

polar(theta,rho,LineSpec)은 극좌표 플롯에 그리는 선에 대한 선 스타일, 마커 기호, 색을 지정합니다.

예제

polar(ax,___)는 현재 좌표축(gca) 대신 지정된 좌표축에 플로팅합니다.

ln = polar(___)는 극좌표 플롯을 만드는 데 사용된 Line 객체를 반환합니다. 극좌표 플롯이 생성된 후 이를 수정하려면 ln을 사용하십시오. 속성 목록은 Line 속성 항목을 참조하십시오.

예제

모두 축소

빨간색 파선을 사용하여 극좌표 플롯을 생성합니다.

theta = 0:0.01:2*pi;
rho = sin(2*theta).*cos(2*theta);
polar(theta,rho,"--r")

Figure contains an axes object. The hidden axes object contains an object of type line.

입력 인수

모두 축소

각도 값으로, 벡터나 행렬로 지정됩니다. 값을 라디안으로 지정합니다.

반지름 값으로, 벡터나 행렬로 지정됩니다.

음의 rho 값은 pi만큼 회전한 것으로, 원점 대칭입니다((theta,rho)(rho*cos(theta),rho*sin(theta))로 변환되기 때문). 다른 동작을 원할 경우 플로팅을 수행하기 전에 rho를 조작할 수 있습니다. 예를 들어, rhomax(0,rho)abs(rho)와 동일하게 설정할 수 있습니다.

선 스타일, 마커, 색으로, 기호를 포함하는 string형 스칼라 또는 문자형 벡터로 지정됩니다. 기호는 어떤 순서로 지정해도 좋습니다. 세 가지 특성(선 스타일, 마커, 색)을 모두 지정할 필요는 없습니다. 예를 들어 선 스타일을 생략하고 마커를 지정하면 플롯은 마커만 표시하고 선은 표시하지 않습니다.

예: "--or"은 원 마커로 표시된 빨간색 파선입니다.

선 스타일설명결과 선
"-"실선

Sample of solid line

"--"파선

Sample of dashed line

":"점선

Sample of dotted line

"-."일점 쇄선

Sample of dash-dotted line, with alternating dashes and dots

마커설명결과로 생성되는 마커
"o"

Sample of circle marker

"+"플러스 기호

Sample of plus sign marker

"*"별표

Sample of asterisk marker

"."

Sample of point marker

"x"십자

Sample of cross marker

"_"가로선

Sample of horizontal line marker

"|"세로선

Sample of vertical line marker

"square"정사각형

Sample of square marker

"diamond"다이아몬드

Sample of diamond marker

"^"위쪽 방향 삼각형

Sample of upward-pointing triangle marker

"v"아래쪽 방향 삼각형

Sample of downward-pointing triangle marker

">"오른쪽 방향 삼각형

Sample of right-pointing triangle marker

"<"왼쪽 방향 삼각형

Sample of left-pointing triangle marker

"pentagram"펜타그램

Sample of pentagram marker

"hexagram"헥사그램

Sample of hexagram marker

색 이름짧은 이름RGB 3색모양
"red""r"[1 0 0]

Sample of the color red

"green""g"[0 1 0]

Sample of the color green

"blue""b"[0 0 1]

Sample of the color blue

"cyan" "c"[0 1 1]

Sample of the color cyan

"magenta""m"[1 0 1]

Sample of the color magenta

"yellow""y"[1 1 0]

Sample of the color yellow

"black""k"[0 0 0]

Sample of the color black

"white""w"[1 1 1]

Sample of the color white

대상 좌표축으로, Axes 객체로 지정됩니다. 좌표축을 지정하지 않는 경우 MATLAB®은 현재 좌표축으로 플로팅하거나 좌표축이 없다면 Axes 객체를 만듭니다. polarPolarAxes 객체로의 플로팅은 지원하지 않습니다.

확장 기능

모두 확장

버전 내역

R2006a 이전에 개발됨

모두 축소

참고 항목

| |