check.m

来自「Matlab communication toolbox.」· M 代码 · 共 56 行

M
56
字号
function check

% CHECK .........	Checks whether the global variables have been
%                   initialized or not.   If they are not set then
%                   will issue the initialization command "start"
%                   allowing the user to enter the experiment number
%                   before returning the control to the calling function.

%	AUTHOR :  M. Zeytinoglu
%             Department of Electrical & Computer Engineering
%             Ryerson Polytechnic University
%             Toronto, Ontario, CANADA
%
%	DATE    : November 1992.
%	VERSION : 1.0

%===========================================================================
% Modifications history:
% ----------------------
%	o	Tested (and modified) under MATLAB 4.0/4.1 08.16.1993 MZ
%===========================================================================

%-----------------------------------------
%  if "start" has been called before 
%    START_OK = 1,
%  else 
%    START_OK = 0
%-----------------------------------------

global START_OK

if ( exist('START_OK') )

  return;

else

eval('fprintf(''\007\007\007'')');

disp(' ');
disp('********************************************************************');
disp('*                                                                  *');
disp('*   Please initiliaze global variables first.  You will now be     *');
disp('*   be prompted to enter the experiment number.   Enter the        *');
disp('*   experiment number and these variables will be set for you.     *');
disp('*                                                                  *');
disp('*   Please read page 11 in the User''s Manual on how to initialize  *');
disp('*   the simulation environment.                                    *');
disp('*                                                                  *');
disp('********************************************************************');
disp(' ');

  start;

end

⌨️ 快捷键说明

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