www.pudn.com > WCDMA.rar > SF_Callback.m


%Copyright 2002 The Mobile and Portable Radio Research Group 
% 
%This code is part of the GUI package 
%The code handles the callback for the Spreading Factor list box 
global NumDPDCH_Handle 
SFValue=[4;8;16;32;64;128;256;512]; 
UplinkSimConfig.SF=SFValue(get(gcbo,'value')); 
fee=get(NumDPDCH_Handle,'value'); 
if (UplinkSimConfig.SF > 4) & (fee ~= 1) 
   SF_DPDCH_Dialog 
   set(NumDPDCH_Handle,'value',1); 
   UplinkSimConfig.NumDPDCH=1; 
end