fioparameternames.m

来自「复杂网络的一些节点面对攻击的代码」· M 代码 · 共 24 行

M
24
字号
function ParamterNames = FIOParameterNames(InputCells)
% THe function test if the input is of legal format.
%
% Receives:
%   InputCells      -   cell array  -   The function input extracted from varargin.
%
% Returns:
%   ParamterNames   -   boolean     -   True (1) if the input looks valid, False (0) if not.
%   ErrorString -   string      -   (optional) The error description or an empty string.
%   
% Created:
% Lev Muchnik    26/03/2002, 
% +972-54-4326496, LevMuchnik@gmail.com

error(nargchk(1,1,nargin));
error(nargchk(0,1,nargout));

[Success ParamterNames] = FIOTestInput(ParamterNames);

if Success 
   ParamterNames = InputCells{1:2:end};
else
    ParamterNames = {};
end

⌨️ 快捷键说明

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