objectcreate.m
来自「复杂网络的一些节点面对攻击的代码」· M 代码 · 共 43 行
M
43 行
function Data = ObjectCreate(varargin)
% Creats a standatized object (structure) for data processing
%
% Receives:
% varargin - FLEX IO - The input is in FlexIO format. The following parameters are allowed:
% Parameter Name | Type | Optional | Default Value | Description
% Type | string | no | - | The data struct type name
% Signature | string | yes | 'CreateObject' | Keeps list of the functions which toughed the data
%
% Returns:
% Data - struct - The fixed-format struct which contains the data
%
%
% See Also:
%
% Example:
% Data = ObjectCreate('Type','Raw');
%
% Created:
% Lev Muchnik 13/11/2003
error(nargchk(1,inf,nargin));
error(nargoutchk(0,1,nargout));
if ~FIOProcessInputParameters(varargin,GetDefaultInput)
error('The function input is not FlexIO compatible');
end
Data = [];
Data.Type = Type;
Data = ObjectAddSignature(Data,Signature);
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function DefaultInput = GetDefaultInput
DefaultInput = {};
DefaultInput = FIOAddParameter(DefaultInput,'Type','Undefined');
DefaultInput = FIOAddParameter(DefaultInput,'Signature',mfilename);
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?