script transition from cartesian to cylindric issues

조회 수: 5 (최근 30일)
elis02
elis02 2023년 5월 20일
편집: elis02 2023년 5월 20일
Hi
I wrote a code for beam propagation in a medium but for some reason the cartesian vs the cylindric is different.
I think it's somewhere in the fourier transformations but I'm not sure.
Notice in the polar that I only use 'r' since my beam is assumed to be symmetrical so to count the 'theta' I just multiply by 2pi
this is the line of how i look at the beam in the radial:
plot(abs(E_r_t(:,length(T)/2)).^2)
and it looks bad already after first propagation in air. so i assume i'm making something bad. can look at line 135 in the radial for example and insert the code above.
for examle instead of 'fft2' i'm doing fft(E_r_f,[],1) for the radial since it's a different dimention.
Attaching the two codes.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Fourier Analysis and Filtering에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by