%
%  signal_stats_SPL.m  ver 1.0  December 3, 2012
%
function[spl_new]=signal_stats_SPL(m,THF,mina,maxa,iflag)
%    
[~,mina,maxa]=coordinates_ss(m,THF,mina,maxa,iflag);
io=0;
%
while(io < 2 )
        disp(' ');    
        disp(' Additional Options ');
        disp(' 1=add dB margin    ');
        disp(' 2=exit             ');   
        io=input(' ');
        disp(' ')
        if(io==1)
            dB=input(' Input Margin (dB) ');
            THF(:,2)=THF(:,2)+dB;
            [~,mina,maxa]=coordinates_ss(m,THF,mina,maxa,iflag);  
            disp(' ');
            disp(' Matlab output array = spl_new ');
        end
end   
%
spl_new=THF;