www.pudn.com > WCDMA.rar > SetUbound.m
%Copyright 2002 The Mobile and Portable Radio Research Group
%
%This code is part of the GUI
%This code is envoked when the pusle durartion is not set ot an integer value
%The code issues a dialog explaining the error and then sets the pulse length
%to the next higher even integer
UplinkSimConfig.PulseLength=10;
fee=str2num(get(gcbo, 'String'));
if rem(fee,1) ~= 0,
GenDialog('Pulse Duration must be an even integer. Pulse duration will now be set to the next higer even integer');
fee=ceil(fee);
if rem(fee,2) ~= 0,
fee=fee+1;
end
set(gcbo,'String',int2str(fee));
end
if rem(fee,2) ~= 0,
PulselengthDialog
fee=fee+1;
set(gcbo,'String',int2str(fee));
end
UplinkSimConfig.PulseLength= fee;