setubound.m

来自「用matlab程序实现WCDMA系统的仿真」· M 代码 · 共 24 行

M
24
字号
%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;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?