www.gusucode.com > mbcguitools 工具箱 matlab 源码程序 > mbcguitools/@listitemselector/subsref.m

    function out=subsref(sl,s)
%SUBSREF
%   Provides dot referencing interface for listitemselector object.
%   For more information on the properties available, see
%   LISTITEMSELECTOR/GET.

%  Copyright 2000-2007 The MathWorks, Inc. and Ford Global Technologies, Inc.



% Created 3/2/2000

% Bail if we've not been given a listitemselector object
if ~isa(sl,'listitemselector')
   error(message('mbc:listitemselector:InvalidObject'))
end

if length(s)>1 | ~strcmp(s(1).type,'.')
   error(message('mbc:listitemselector:InvalidIndex'));
end


out=get(sl,s.subs);