Mercurial > hg > ltpda
diff m-toolbox/classes/@minfo/getInfoAxis.m @ 0:f0afece42f48
Import.
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Wed, 23 Nov 2011 19:22:13 +0100 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/m-toolbox/classes/@minfo/getInfoAxis.m Wed Nov 23 19:22:13 2011 +0100 @@ -0,0 +1,18 @@ +function ii = getInfoAxis(method, getDefaultPlist, varargin) + + if nargin == 3 && strcmpi(varargin{1}{1}, 'None') + sets = {}; + pls = []; + elseif nargin == 3 && ~isempty(varargin{1}{1}) + sets = varargin{1}; + pls = getDefaultPlist(sets{1}); + else + sets = {'1D', '2D', '3D'}; + pls = []; + for kk=1:numel(sets) + pls = [pls getDefaultPlist(sets{kk})]; + end + end + % Build info object + ii = minfo(method, 'ao', 'ltpda', utils.const.categories.op, '$Id: getInfoAxis.m,v 1.1 2011/04/17 09:20:33 hewitson Exp $', sets, pls); +end \ No newline at end of file