

OutputPort1=InputPort1;
p1=Param1;
%Getting values from OptiSystem

    if(InputPort1.TypeSignal == 'Optical')

    
    [ls, cs] = size(InputPort1.Sampled);
    
    if( ls > 0 )   
for counter1=1:ls
    if  InputPort1.Sampled(1,counter1).Signal<=p1
        OutputPort1.Sampled(1,counter1).Signal =0;
    else 
         
    OutputPort1.Sampled(1,counter1).Signal = InputPort1.Sampled(1,counter1).Signal;
    
       
    end  
end
    end
    end


