필터 지우기
필터 지우기

rotate polar angle by an arbitrary angle

조회 수: 2 (최근 30일)
Jingtao
Jingtao 2023년 6월 10일
댓글: Jingtao 2023년 6월 10일
I got a polar angle map THETA0 from running the snippet below.
N = 1024;
x0 = linspace(-N/2, N/2, N);
y0 = x0;
[X0,Y0] = meshgrid(x0,y0);
[THETA0,R0] = cart2pol(X0,Y0);
But cart2pol returns polar angle map starting from the positive x-axis. I want to get a polar angle map starting at an arbitrary angle of beta. How can I realize this?

채택된 답변

Matt J
Matt J 2023년 6월 10일
THETA0=THETA0-beta;
  댓글 수: 1
Jingtao
Jingtao 2023년 6월 10일
Thanks! THETA0=mod(THETA0-beta,2*pi) works right!

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

추가 답변 (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