www.gusucode.com > mbcexpr 工具箱 matlab 源码程序 > mbcexpr/@cglookupone/get.m
function out = get(LT, property); % LookUpOne\get % get(l) returns list of properties % val=get(l,'property') returns the value of the named property of the object % Copyright 2000-2007 The MathWorks, Inc. and Ford Global Technologies, Inc. if nargin == 1 out = get(LT.cgnormfunction); elseif nargin == 2 if ~isa(property , 'char') error(message('mbc:cglookupone:InvalidPropertyName')); end switch lower(property) case {'x','axesptrs'} % return the xinput to the dummy normaliser % we don't give the dummy normaliser itself to the outside world dummyNorm = get(LT.cgnormfunction,'x'); if ~isempty(dummyNorm) out = dummyNorm.get('x'); else out = []; end case {'breakpoints','axes','allbreakpoints'} % return the breakpoints from the dummy normaliser dummyNorm = get(LT.cgnormfunction,'x'); if ~isempty(dummyNorm) out = dummyNorm.get('Breakpoints'); else out = []; end case 'bplocks' % return the breakpoints locks from the dummy normaliser dummyNorm = get(LT.cgnormfunction,'x'); if ~isempty(dummyNorm) out = dummyNorm.get('BPLocks'); else out = []; end case 'type' warning(message('mbc:cglookupone:ObsoleteOption')); out = gettype(LT); otherwise try out =get(LT.cgnormfunction,property); catch error(message('mbc:cglookupone:InvalidPropertyName1', property)); end end else error(message('mbc:cglookupone:TooFewInputs')); end