From d292ad65818ed2dc628003a7102df28b28f25e57 Mon Sep 17 00:00:00 2001 From: roflmaostc Date: Tue, 9 Jan 2024 22:45:43 +0100 Subject: [PATCH] Fix magnification --- examples/Scalable_Angular_Spectrum.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/Scalable_Angular_Spectrum.jl b/examples/Scalable_Angular_Spectrum.jl index cba14e1..cf0b81d 100644 --- a/examples/Scalable_Angular_Spectrum.jl +++ b/examples/Scalable_Angular_Spectrum.jl @@ -58,7 +58,7 @@ D_circ = N / 8 U_circ = togoc(ComplexF32.(rr((N, N)) .< D_circ / 2) .* exp.(1im .* 2f0 * π ./ λ .* y .* sind(45f0)) .+ ComplexF32.(rr((N, N)) .< D_circ / 2) .* exp.(1im .* 2f0 * π ./ λ .* y' .* sind(-45f0))); # ╔═╡ 34c326ee-6663-432e-b884-a5419ce64827 -@bind M Slider(1:0.1:20, show_value=true) +@bind M Slider(1:0.1:20, show_value=true, default=4) # ╔═╡ 4202033d-62e6-451f-a064-e61d420da5ff z_circ = Float32(M / N / λ * L^2 * 2) @@ -117,7 +117,7 @@ x_box = y_box'; U_box = togoc((x_box.^2 .<= (D_box / 2).^2) .* (y_box.^2 .<= (D_box / 2).^2) .* (exp.(1im .* 2f0 * π ./ λ .* y_box' .* sind(20f0)))); # ╔═╡ 11947eea-b2eb-4168-bc96-8e1fc7b74599 -@bind M_box Slider(1:0.5:20, show_value=true) +@bind M_box Slider(1:0.5:20, show_value=true, default=8) # ╔═╡ aacc5f18-05b5-4a5e-9217-fa62966830e5 z_box = M_box / N_box / λ * L_box^2 * 2