%hCarrierAggregationChannelSpacing Normal channel spacing
%   SPACING = hCarrierAggregationChannelSpacing(BW1,BW2) is the nominal
%   channel spacing in MHz between two adjacent carriers with bandwidths
%   BW1 and BW2, also expressed in MHz.

%   Copyright 2011-2014 The MathWorks, Inc.

function spacing = hCarrierAggregationChannelSpacing(bw1,bw2)

    % Nominal channel spacing as defined in TS36.101 5.7.1A
    spacing = floor((bw1+bw2-0.1*abs(bw1-bw2))/0.6)*0.3;
    
end
