comparison m-toolbox/classes/@ao/dy.m @ 0:f0afece42f48

Import.
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Wed, 23 Nov 2011 19:22:13 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:f0afece42f48
1 % DY Get the data property 'dy'.
2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3 %
4 % DESCRIPTION: Get the data property 'dy'.
5 %
6 % CALL: val = obj.dy();
7 %
8 % INPUTS: obj - must be a single data2D object.
9 %
10 % <a href="matlab:utils.helper.displayMethodInfo('ao', 'dy')">Parameters Description</a>
11 %
12 % VERSION: $Id: dy.m,v 1.10 2011/06/20 16:52:19 ingo Exp $
13 %
14 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
15
16 function varargout = dy(varargin)
17
18 % Check if this is a call for parameters
19 if utils.helper.isinfocall(varargin{:})
20 varargout{1} = getInfo(varargin{3});
21 return
22 end
23
24 % Collect numeric and char arguments to pass to getDy
25 args = {};
26 for kk = 1:nargin
27 if isnumeric(varargin{kk}) || ischar(varargin{kk}) || islogical(varargin{kk})
28 args = [args {varargin{kk}}];
29 end
30 end
31
32 as = varargin{1};
33
34 % Get property
35 out = [];
36 for jj = 1:numel(as)
37 out = [out as(jj).data.getDy(args{:})];
38 end
39
40 % Set output
41 varargout{1} = out;
42
43 end
44
45 %--------------------------------------------------------------------------
46 % Get Info Object
47 %--------------------------------------------------------------------------
48 function ii = getInfo(varargin)
49 if nargin == 1 && strcmpi(varargin{1}, 'None')
50 sets = {};
51 pl = [];
52 else
53 sets = {'Default'};
54 pl = getDefaultPlist;
55 end
56 % Build info object
57 ii = minfo(mfilename, 'ao', 'ltpda', utils.const.categories.helper, '$Id: dy.m,v 1.10 2011/06/20 16:52:19 ingo Exp $', sets, pl);
58 ii.setModifier(false);
59 end
60
61 %--------------------------------------------------------------------------
62 % Get Default Plist
63 %--------------------------------------------------------------------------
64 function plout = getDefaultPlist()
65 persistent pl;
66 if ~exist('pl', 'var') || isempty(pl)
67 pl = buildplist();
68 end
69 plout = pl;
70 end
71
72 function pl = buildplist()
73 pl = plist.EMPTY_PLIST;
74 end