%SCALING FUNCTION****************************************

%Normalising/Scaling Function
%Arguments unNormalised Matrix, Max Photon Count

function[Norm]=Scale(notNorm,NoPhot)

peak=max(max(notNorm));
scaling=NoPhot/peak;
Norm=scaling*notNorm;

