フィルターのクリア

Revolving a 2D plot around its vertical axis to generate 3D surface

17 ビュー (過去 30 日間)
Asser Abdelgawad
Asser Abdelgawad 2022 年 6 月 13 日
コメント済み: Matt J 2022 年 6 月 16 日
While this solution is helpful, the usage of repmat makes it so that the values are repeated and not unique. What I would like to do is convert to polar and rotate without repeating values. Is there a way to execute the revolution without repmat?
  2 件のコメント
SAA
SAA 2022 年 6 月 13 日
編集済み: SAA 2022 年 6 月 13 日
cart2pol would transform to polar from cartesian.
Asser Abdelgawad
Asser Abdelgawad 2022 年 6 月 13 日
Hmm but is there a way to do it besides repmat? For instance:
theta = linspace(0, 2*pi, 100);
for i=1:100
theta=pi/180*theta(i);
t_theta=X.*cos(theta)+Y.*sin(theta);
vals=interp1(x , y, t_theta(:),'pchip');
end

サインインしてコメントする。

採用された回答

Matt J
Matt J 2022 年 6 月 13 日
  18 件のコメント
Asser Abdelgawad
Asser Abdelgawad 2022 年 6 月 16 日
So the IFFT function yields different results than the analytical inverse fourier transform? I did know that to be honest. OK, so you're saying I'm better off coding the transform function from scratch, with the integral and all?
Matt J
Matt J 2022 年 6 月 16 日
No, the result of the integral is already known:

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by