📄 objectaddsignature.m
字号:
function Data = ObjectAddSignature(Data,Signature)
% Helps to keep track of what kind of processing was performed on the Data.
%
% Receives:
% Data - struct - Structure initially created with Object create
% Signature - string - (optional) The name of the function wich processes the Data. Default: eval('caller','mfilename')
% cell array of strings - list of signatures
% Returns:
% Data - struct - Structure initially created with Object create%
%
% See Also:
% CreateObject
%
%
% Example:
%
%
%
% Created:
%
% Lev Muchnik 01/06/2004, lev@topspin.co.il, +972-54-4326496
%
%
%
error(nargchk(1,2,nargin));
error(nargoutchk(0,1,nargout));
if ~exist('Signature','var')
Signature = eval('caller','mfilename');
end
if ~isfield(Data,'Signature')
Data.Signature = {};
end
if ischar(Signature)
Data.Signature{end+1} = Signature;
elseif iscell(Signature)
Data.Signature = [Data.Signature Signature];
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -