LAT Hologramm-Software 2.0
Loading...
Searching...
No Matches
Random_Phase.m
Go to the documentation of this file.
1%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2 % Funktion
3 %
4 % Erstellt Matrix mit Zufallsphase im Bereich [0, maxRandom]
5 % Dient zur Reduzierung der Symmetrie von dem Gesamthologramm, um so
6 % Ghostspots zu unterdrücken
7 %
8 %Autor: Jan Marx
9 %Letzte Änderung: 27.09.2022
10 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
11
12function [image] = Random_Phase(maxRandom)
13
14pixelX = evalin('base', 'Hologram.pixelX');
15pixelY = evalin('base', 'Hologram.pixelY');
16
17phase = rand(pixelX,pixelY)*2*pi*maxRandom/100;
18
19image = exp(1i*phase);
20end
21
22
23
function Random_Phase(in maxRandom)
Erstellt Matrix mit Zufallsphase im Bereich [0, maxRandom]. Dient zur Reduzierung der Symmetrie von d...