⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 objectgettype.m

📁 复杂网络的一些节点面对攻击的代码
💻 M
字号:
function Type = ObjectGetType(Data)
%  Returns the type of the object
%
% Receives:
%   Data                -   struct          -   Structure initially created with ObjectCreate function. Will return it's type.
%                         anythhing else - an empty string is returned.
%
% Returns:
%   Type            -   string          -   The name of the Data object type
%
% See Also:
%   CreateObject
%
%
% Example:
%   
%   
%   
% Created:
%   
%   Lev Muchnik    01/06/2004, lev@topspin.co.il, +972-54-4326496
%
%     Lev Muchnik   30/10/2004, lev@topspin.co.il, +972-54-4326496
%       Input 'Data'  is allowed to be array of structs.


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

if isstruct(Data) & isfield(Data,'Type') & ischar(Data(1).Type)
    Type = Data(1).Type;
else
    Type = '';
end

⌨️ 快捷键说明

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