Fixed matlab calculations

This commit is contained in:
2023-03-22 14:13:17 +04:00
parent 78916d0ec9
commit bd8cd9e635
6 changed files with 13 additions and 19 deletions

View File

@@ -1,4 +1,5 @@
% Gaussian TEM00 beam
function g = gauss(r, r_max, w0)
g = exp(-2 * r.^2 / w0^2);
function g = gauss(r, w0, r_max)
A = (1 - exp(-2*r_max.^2 / w0^2)); % the fraction of power that falls on the pupil of the micro lens
g = 2 * A * exp(-2 * r.^2 / w0^2);
end