フィルターのクリア

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 Center および File ExchangePolar Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by