delaycallback.m

来自「对WCDMA的性能进行了仿真」· M 代码 · 共 28 行

M
28
字号
%************************************************************
%
% Copyright 2002 The Mobile and Portable Radio Research Group
%
% Part of GUI for downlink simulator.
% Updates user input into Delay edit boxes and issues 
% apporiate error dialog if a value greater than 0 is entered
%
%************************************************************

global DelayHandle AmpHandle

fee = str2num(get(DelayHandle(BoxNum), 'String'))*1e-9;
if isempty(fee)
   set(AmpHandle(BoxNum),'String',[]);
   for k=(BoxNum+1):6
      set(DelayHandle(k),'String',[]);
      set(AmpHandle(k),'String',[]);
   end
elseif fee < 0
   curfig=GenDialog('The Delay values cannot be negative');
   uiwait(curfig);
   GenDialog('Resetting to 0');
   set(DelayHandle(BoxNum), 'String','0');
end


⌨️ 快捷键说明

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