📄 objectgettype.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 + -